/* KIOSKI — tienda. Paleta tomada del manual de marca. */
:root {
  --blue: #3B5CB3;
  --blue-d: #2C4691;
  --red: #A93C33;
  --red-b: #D2483B;
  --yellow: #ECBB63;
  --cream: #F4E9D7;
  --sky: #B5C1D9;
  --sky-l: #DDE3EF;
  --ink: #1F2A4D;
  --muted: #5F6680;
  --paper: #FBF6EE;
  --line: #1F2A4D;
  --ok: #2E7D4F;
  --r: 14px;
  --r-lg: 18px;
  --bw: 2.5px;
  --bw2: 2px;
  --bw3: 3px;
  --shadow: 4px 4px 0 var(--line);
  --shadow-sm: 3px 3px 0 var(--line);
  --head: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Pacifico', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); font-size: 16px; line-height: 1.5;
  background: var(--paper) url('/img/kraft.jpg') center top / 1600px auto;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .4em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px; }
[hidden] { display: none !important; }

/* Anuncio + header */
.announce { background: var(--blue); color: var(--cream); text-align: center; font-weight: 700; font-size: .85rem; padding: 7px 16px; }
.header { background: var(--sky); border-bottom: var(--bw3) solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 64px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; background: #fff; border: var(--bw) solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: var(--shadow-sm); }
.search input { flex: 1; border: 0; padding: 10px 16px; outline: none; background: transparent; min-width: 0; }
.search button { border: 0; background: var(--yellow); padding: 0 16px; cursor: pointer; border-left: var(--bw) solid var(--line); display: grid; place-items: center; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.45); }
.cart-btn { background: var(--red-b); color: #fff; border: var(--bw) solid var(--line); box-shadow: var(--shadow-sm); padding: 9px; }
.cart-btn:hover { background: var(--red); }
.badge { position: absolute; top: -8px; right: -8px; background: var(--yellow); color: var(--ink); border: var(--bw2) solid var(--line); border-radius: 999px; font-size: .72rem; font-weight: 900; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; }
.badge.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav { background: var(--cream); border-top: 2px solid rgba(31,42,77,.15); }
.nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.nav-row::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sky-l); }
.nav-hot { color: var(--red) !important; }
.only-mobile { display: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  background: #fff; color: var(--ink); border: var(--bw) solid var(--line); border-radius: 12px; padding: 10px 18px; font-weight: 900;
  box-shadow: var(--shadow-sm); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--blue); color: var(--cream); }
.btn-yellow { background: var(--yellow); }
.btn-cream { background: var(--cream); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-wa { background: #25D366; color: #fff; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { font-weight: 900; text-decoration: none; }
.pill { display: inline-block; background: var(--cream); color: var(--blue); border: var(--bw2) solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 900; font-size: .85rem; text-decoration: none; }
.pill-yellow { background: var(--yellow); color: var(--ink); }

/* Hero */
.hero { background: var(--blue); color: var(--cream); border-bottom: var(--bw3) solid var(--line); overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(236,187,99,.35), transparent 55%); }
.hero-row { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); margin: 16px 0 12px; color: var(--cream); text-shadow: 4px 4px 0 var(--red); }
.hero p { font-size: 1.2rem; max-width: 34ch; font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn-primary { background: var(--red-b); color: #fff; }
.hero-art img { max-height: 400px; margin: 0 auto; animation: walk 3s ease-in-out infinite; filter: drop-shadow(6px 8px 0 rgba(31,42,77,.35)); }
@keyframes walk { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -1px; padding-top: 20px; padding-bottom: 8px; }
.perks > div { display: flex; gap: 12px; align-items: center; background: #fff; border: var(--bw) solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow-sm); color: var(--blue); }
.perks span { color: var(--ink); font-size: .85rem; line-height: 1.25; }
.perks strong { display: block; font-size: .95rem; }

/* Secciones */
.section { padding-top: 32px; padding-bottom: 32px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--blue); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--blue); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 12px; }
.cat { aspect-ratio: 1; border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; transition: transform .12s; }
.cat:hover { transform: translateY(-3px) rotate(-1deg); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-emoji { font-size: 2.8rem; }
.cat-name { font-family: var(--head); font-size: 1.05rem; position: relative; background: var(--cream); border: var(--bw2) solid var(--line); border-radius: 999px; padding: 2px 12px; }
.cat-0 { background: var(--sky); } .cat-1 { background: var(--yellow); } .cat-2 { background: #E8A89F; } .cat-3 { background: var(--cream); } .cat-4 { background: #C9D7B8; }
.cat-hot { background: var(--red-b); }

/* Grilla de productos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 14px; }
.card { background: #fff; border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .12s; }
.card:hover { transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 1; background: var(--sky-l); display: block; border-bottom: var(--bw) solid var(--line); }
.card-media > img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--sky-l), var(--sky-l) 14px, var(--cream) 14px, var(--cream) 28px); }
.ph img { width: 45%; opacity: .9; }
.tag { position: absolute; top: 10px; left: 10px; border: var(--bw2) solid var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 900; font-size: .82rem; }
.tag-off { background: var(--yellow); }
.tag-out { background: var(--ink); color: #fff; left: auto; right: 10px; }
.tag-lg { font-size: 1rem; padding: 4px 14px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.card-title:hover { color: var(--blue); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price strong { font-family: var(--head); font-weight: 400; font-size: 1.2rem; color: var(--blue); }
.price s { color: var(--muted); font-size: .9rem; }
.btn-add { background: var(--yellow); padding: 8px 12px; }
.empty { text-align: center; padding: 40px 16px; }
.empty img { width: 140px; margin: 0 auto 12px; }

/* Promo */
.promo { background: var(--red-b); color: var(--cream); border-top: var(--bw3) solid var(--line); border-bottom: var(--bw3) solid var(--line); margin: 24px 0; }
.promo-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.promo h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 12px 0 8px; text-shadow: 3px 3px 0 var(--line); }
.promo p { font-weight: 700; margin: 0 0 20px; }
.promo-logo { width: 240px; transform: rotate(-6deg); filter: drop-shadow(4px 4px 0 rgba(31,42,77,.5)); }

/* Listado */
.list-hero { background: var(--sky); border-bottom: var(--bw3) solid var(--line); padding: 24px 0; }
.list-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--blue); margin: 6px 0 0; }
.list-hero p { margin: 4px 0 0; font-weight: 700; }
.crumbs { font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.filters { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff; border: var(--bw) solid var(--line); border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow-sm); }
.filters .sel { margin-left: auto; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.filters select { border: var(--bw2) solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--cream); }
.check { display: flex; gap: 6px; align-items: center; font-weight: 700; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Ficha de producto */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 16px; align-items: start; }
.gallery { position: sticky; top: 130px; }
.gallery-main { position: relative; background: #fff; border: var(--bw) solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.gallery-main > img, .gallery-main .ph { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; }
.thumbs button { flex: none; width: 74px; height: 74px; border: 2.5px solid var(--sky); border-radius: 12px; padding: 0; overflow: hidden; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--line); box-shadow: var(--shadow-sm); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 12px 0 8px; }
.lead { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.price-lg strong { font-size: 2rem; }
.price-lg s { font-size: 1.1rem; }
.save { background: var(--yellow); border: var(--bw2) solid var(--line); border-radius: 999px; padding: 1px 10px; font-weight: 900; font-size: .85rem; }
.stock { font-weight: 800; color: var(--ok); margin: 8px 0 16px; }
.stock-out { color: var(--red); }
.buy { display: flex; gap: 12px; margin-bottom: 12px; }
.qty { display: flex; border: var(--bw) solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.qty button { width: 42px; border: 0; background: var(--cream); font-size: 1.3rem; font-weight: 900; cursor: pointer; }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 900; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; font-size: 1.1rem; }
.qty-sm input { width: 40px; }
.pdp-info .btn-wa { margin-top: 12px; }
.mini-perks { list-style: none; padding: 14px 16px; margin: 18px 0; background: var(--cream); border: 2px dashed var(--line); border-radius: var(--r); font-weight: 700; font-size: .92rem; }
.mini-perks li + li { margin-top: 4px; }
.desc h2 { font-size: 1.3rem; color: var(--blue); }
.desc ul { padding-left: 20px; }

/* Drawer carrito / menú */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer::before { content: ''; position: absolute; inset: 0; background: rgba(31,42,77,.45); opacity: 0; transition: opacity .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--paper); border-left: var(--bw3) solid var(--line);
  transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer-left .drawer-panel { right: auto; left: 0; border-left: 0; border-right: var(--bw3) solid var(--line); transform: translateX(-105%); }
.drawer.open { pointer-events: auto; }
.drawer.open::before { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--sky); border-bottom: var(--bw3) solid var(--line); font-family: var(--head); font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.drawer-foot { padding: 14px 16px; border-top: var(--bw3) solid var(--line); background: #fff; display: grid; gap: 8px; }
.menu-list { display: grid; padding: 8px; }
.menu-list a { text-decoration: none; color: var(--ink); font-weight: 800; padding: 12px; border-radius: 10px; font-size: 1.05rem; }
.menu-list a:hover { background: var(--sky-l); }
.ci { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 2px dashed rgba(31,42,77,.2); }
.ci img, .ci .ph { width: 68px; height: 68px; object-fit: cover; border: var(--bw2) solid var(--line); border-radius: 10px; }
.ci-name { font-weight: 800; line-height: 1.2; color: var(--ink); text-decoration: none; display: block; }
.ci-price { color: var(--blue); font-weight: 900; }
.ci-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 4px 0; }
.ci-right { display: grid; justify-items: end; gap: 6px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.cart-empty { text-align: center; padding: 30px 0; }
.cart-empty img { width: 120px; margin: 0 auto 10px; }
.warn { background: #FFF1CC; border: var(--bw2) solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }

/* Checkout */
.box { background: #fff; border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 18px; }
.box h2 { font-size: 1.3rem; color: var(--blue); }
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
fieldset.box { min-width: 0; }
legend { font-family: var(--head); font-size: 1.2rem; color: var(--blue); background: var(--cream); border: var(--bw) solid var(--line); border-radius: 999px; padding: 2px 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.f-full { grid-column: 1 / -1; }
label { font-weight: 800; font-size: .92rem; display: grid; gap: 4px; }
input:not([type=radio]):not([type=checkbox]), select, textarea { border: var(--bw2) solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper); width: 100%; font-weight: 600; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
input.bad { border-color: var(--red-b); background: #FCECEA; }
.choices { display: grid; gap: 10px; margin: 12px 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--sky); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--line); background: var(--sky-l); box-shadow: var(--shadow-sm); }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.choice strong { display: block; }
.choice small { color: var(--muted); font-size: .85rem; }
.co-side { position: sticky; top: 140px; }
.co-side .row-between { padding: 6px 0; }
.co-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 2px dashed rgba(31,42,77,.15); font-size: .92rem; }
.co-line img, .co-line .ph { width: 44px; height: 44px; border-radius: 8px; border: var(--bw2) solid var(--line); object-fit: cover; flex: none; }
.co-line span { flex: 1; }
.total { font-size: 1.15rem; border-top: var(--bw3) solid var(--line); margin-top: 6px; padding-top: 10px !important; }
.total strong { font-family: var(--head); font-weight: 400; color: var(--blue); font-size: 1.4rem; }
.error { color: #fff; background: var(--red-b); border: var(--bw2) solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 700; }

/* Pedido */
.thanks { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.thanks img { width: 120px; }
.thanks h1 { color: var(--blue); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 4px; }
.notice { background: var(--cream); border: var(--bw) solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-weight: 700; display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.notice-ok { background: #D9F0DF; }
.notice-bad { background: #FCE1DD; }
.notice .btn { justify-self: start; }
.transfer { white-space: pre-wrap; background: #fff; border: 2px dashed var(--line); border-radius: 10px; padding: 12px; font-family: inherit; margin: 0; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 2px dashed rgba(31,42,77,.15); }
.prose p { margin: 0 0 1em; }

/* Footer */
.footer { background: var(--ink); color: var(--cream); margin-top: 40px; padding-top: 40px; border-top: 4px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.footer h4 { font-family: var(--head); font-weight: 400; color: var(--yellow); margin: 0 0 10px; font-size: 1.05rem; }
.footer a, .footer span { display: block; color: var(--cream); text-decoration: none; opacity: .9; margin-bottom: 6px; font-size: .93rem; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-logo { width: 150px; background: var(--sky); border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 999px; background: var(--blue); display: grid; place-items: center; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(244,233,215,.2); margin-top: 28px; padding-top: 16px; padding-bottom: 20px; font-size: .85rem; opacity: .8; }
.footer-bottom span { display: inline; margin: 0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 999px; background: #25D366; color: #fff; display: grid; place-items: center; border: var(--bw3) solid var(--line); box-shadow: var(--shadow-sm); }
.wa-float svg { width: 30px; height: 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 12px; font-weight: 800; z-index: 80; transition: transform .25s; border: 2px solid var(--yellow); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .pdp, .checkout { grid-template-columns: 1fr; }
  .gallery, .co-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .only-mobile { display: grid; }
  .header-row { flex-wrap: wrap; gap: 8px; }
  .logo img { height: 48px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .cart-btn { margin-left: auto; }
  .nav { display: none; }
  .hero-row { grid-template-columns: 1fr; text-align: center; padding-top: 28px; padding-bottom: 28px; }
  .hero p { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-art img { max-height: 220px; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perks > div { padding: 10px; gap: 8px; }
  .perks svg { width: 22px; height: 22px; flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .card-title { font-size: .92rem; }
  .price strong { font-size: 1.02rem; }
  .btn-add span { font-size: .88rem; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-emoji { font-size: 2rem; }
  .cat-name { font-size: .8rem; padding: 2px 8px; }
  .promo-row { flex-direction: column; text-align: center; }
  .promo-logo { width: 160px; }
  .fields { grid-template-columns: 1fr; }
  .filters .sel { margin-left: 0; }
  .thanks { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Barra de vista previa de estilos (solo visible con ?tema=) */
.preview-bar { position: sticky; top: 0; z-index: 90; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; background: #111; color: #fff; font: 600 13px/1.2 system-ui, sans-serif; padding: 8px 12px; }
.preview-bar a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 12px; }
.preview-bar a.on { background: #fff; color: #111; }
.preview-bar a.exit { border: 0; opacity: .7; }
body:has(.preview-bar) .header { top: 33px; }
.preview-bar .sep { margin-left: 10px; opacity: .7; }
