:root {
  --ink: #000;
  --paper: #fff;
  --wall: #f3f3f3;
  --mortar: #e2e2e2;
  --green: #2BD45B;
  --yellow: #FFD23F;
  --pink: #FF4FA3;
  --teal: #22C3B5;
  --red: #F2433A;
  --muted: #555;
  --line: 3px solid var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --display: "Bungee", "Arial Black", sans-serif;
  --shade: "Bungee Shade", "Bungee", sans-serif;
  --body: "Rubik", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }

/* Ribbon */
.demo-ribbon {
  background: var(--ink); color: var(--yellow);
  font-size: 13px; font-weight: 500; text-align: center; padding: 6px 16px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: var(--paper); border-bottom: var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-chill {
  font-family: var(--shade); font-size: 34px; line-height: 1; color: var(--green);
  -webkit-text-stroke: 1.5px var(--ink);
}
.brand-chill.big { font-size: 64px; display: block; text-align: center; }
.brand-sub { font-family: var(--display); font-size: 14px; }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 700; padding: 6px 2px; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-color: var(--green); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); border: var(--line); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; box-shadow: var(--pop-sm);
  transition: transform .12s, box-shadow .12s;
}
.cart-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.cart-count {
  min-width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--paper);
  display: inline-grid; place-items: center; font-size: 14px; padding: 0 6px;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; text-decoration: none;
  padding: 13px 22px; border: var(--line); border-radius: 14px;
  box-shadow: var(--pop-sm); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--green); }
.btn-ink:hover { box-shadow: 5px 5px 0 var(--green); }
.btn-ghost { background: var(--paper); }
.btn-green { background: var(--green); }
.btn.wide { width: 100%; }

/* Hero: pared de ladrillos como la del logo */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px);
  background-color: var(--wall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80'%3E%3Cpath d='M0 1h120M0 41h120M1 0v40M61 40v40' stroke='%23e0e0e0' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 120px 80px;
  border-bottom: var(--line);
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(52px, 8.4vw, 120px);
  color: var(--ink);
  max-width: 9ch;
  text-shadow: 4px 4px 0 var(--green);
}
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; margin: 24px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stickers { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.sticker {
  position: absolute; width: 46%;
  filter: drop-shadow(0 0 0 #fff) drop-shadow(5px 5px 0 rgba(0,0,0,1));
  animation: drop .55s cubic-bezier(.2,1.6,.4,1) both;
}
.sticker circle:first-child { paint-order: stroke; }
.s1 { left: 4%; top: 2%; transform: rotate(-10deg); animation-delay: .05s; }
.s2 { right: 2%; top: 10%; transform: rotate(8deg); animation-delay: .15s; }
.s3 { left: 12%; bottom: 4%; transform: rotate(6deg); animation-delay: .25s; }
.s4 { right: 8%; bottom: 0; transform: rotate(-6deg); animation-delay: .35s; }
@keyframes drop { from { opacity: 0; translate: 0 -40px; scale: .7; } }

/* Franja de beneficios */
.perks {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--yellow); border-bottom: var(--line);
}
.perks p { margin: 0; padding: 16px clamp(16px, 3vw, 32px); font-size: 16px; }
.perks p + p { border-left: var(--line); }

/* Tienda */
.shop { padding: 64px clamp(16px, 4vw, 48px) 40px; max-width: 1320px; margin: 0 auto; }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.shop h2, .branches h2 { font-size: clamp(40px, 5vw, 64px); }
.search {
  display: flex; align-items: center; gap: 10px; flex: 0 1 380px;
  border: var(--line); border-radius: 14px; padding: 10px 14px; background: var(--paper);
}
.search input { border: 0; outline: 0; font: inherit; width: 100%; background: transparent; }
.search:focus-within { box-shadow: var(--pop-sm); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chip {
  border: var(--line); border-radius: 999px; background: var(--paper);
  padding: 8px 16px; font-weight: 700; font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[data-color="green"][aria-pressed="true"] { background: var(--green); color: var(--ink); }
.chip[data-color="yellow"][aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.chip[data-color="pink"][aria-pressed="true"] { background: var(--pink); color: var(--ink); }
.chip[data-color="teal"][aria-pressed="true"] { background: var(--teal); color: var(--ink); }
.chip[data-color="red"][aria-pressed="true"] { background: var(--red); color: var(--ink); }
.result-note { color: var(--muted); font-size: 15px; min-height: 1.5em; margin: 8px 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  border: var(--line); border-radius: 18px; background: var(--paper); overflow: hidden;
}
.card-art {
  position: relative; display: block; width: 100%; border: 0; border-bottom: var(--line);
  padding: 18px; aspect-ratio: 1 / 1; background: var(--c, var(--green));
}
.card-art svg { width: 78%; margin: auto; transition: transform .2s; }
.card-art:hover svg { transform: rotate(-4deg) scale(1.04); }
.badge {
  position: absolute; left: 12px; top: 12px;
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 8px;
  font-size: 13px; font-weight: 800; padding: 3px 8px; transform: rotate(-4deg);
}
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-brand { font-size: 14px; color: var(--muted); margin: 0; }
.card-name { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.3; }
.card-name button { all: unset; cursor: pointer; }
.card-name button:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card-name button:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.card-price { font-family: var(--display); font-size: 22px; margin: 6px 0 0; }
.card-transfer { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.card-add { margin-top: auto; background: var(--paper); padding: 10px 14px; font-size: 15px; }
.card-add:hover { background: var(--green); }
.empty {
  grid-column: 1 / -1; border: 3px dashed var(--ink); border-radius: 18px; padding: 40px; text-align: center;
}

/* Sucursales */
.branches { padding: 40px clamp(16px, 4vw, 48px) 64px; max-width: 1320px; margin: 0 auto; }
.section-lead { max-width: 52ch; margin: 12px 0 28px; font-size: 18px; }
.branch-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.branch { border: var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--pop); }
.branch h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 12px; }
.branch p { margin: 0 0 22px; }
.branch-green { background: var(--green); }
.branch-yellow { background: var(--yellow); }

/* Mayoristas */
.wholesale {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 clamp(16px, 4vw, 48px) 48px; padding: 32px clamp(20px, 4vw, 44px);
  background: var(--pink); border: var(--line); border-radius: 22px; box-shadow: var(--pop);
}
.wholesale h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 18ch; }
.wholesale p { margin: 10px 0 0; max-width: 52ch; }
@media (min-width: 1416px) { .wholesale { max-width: 1224px; margin-left: auto; margin-right: auto; } }

.legal-note { padding: 0 clamp(16px, 4vw, 48px) 48px; max-width: 1320px; margin: 0 auto; }
.legal-note p { margin: 0; max-width: 90ch; font-size: 15px; color: var(--muted); }
.legal-note a { color: var(--ink); font-weight: 700; }

/* Footer */
.site-footer {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px;
  background: var(--ink); color: var(--paper); padding: 48px clamp(16px, 4vw, 48px) 96px;
}
.footer-brand p { margin: 10px 0 0; color: #cfcfcf; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.site-footer nav a { text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { color: var(--green); }
.footer-credit { grid-column: 1 / -1; margin: 12px 0 0; font-size: 14px; color: #a6a6a6; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--paper); border: var(--line); box-shadow: var(--pop-sm);
}
.wa-float:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* Diálogos */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 16px;
}
.overlay[hidden] { display: none; }
.dialog {
  position: relative; background: var(--paper); border: var(--line); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--green); width: min(100%, 520px); max-height: calc(100vh - 32px); overflow: auto;
  padding: 32px; animation: pop .22s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.close {
  position: absolute; right: 14px; top: 12px; width: 40px; height: 40px;
  border: var(--line); border-radius: 50%; background: var(--paper); font-size: 24px; line-height: 1;
}
.age-dialog { text-align: center; background: var(--yellow); }
.age-dialog h2 { font-size: 32px; margin: 16px 0 8px; }
.dialog-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.age-no { font-weight: 700; margin-top: 18px; }

.product-dialog { width: min(100%, 880px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; }
.pm-art { border: var(--line); border-radius: 18px; background: var(--c, var(--green)); padding: 24px; display: grid; place-items: center; }
.pm-art svg { width: 86%; }
.pm-brand { margin: 8px 0 4px; color: var(--muted); }
.pm-info h2 { font-size: 30px; margin-right: 40px; }
.pm-price { font-family: var(--display); font-size: 32px; margin: 14px 0 0; }
.pm-transfer { margin: 0 0 12px; color: var(--muted); }
.pm-inase { border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 15px; background: #eafbe9; margin-bottom: 16px; }
.qty { display: inline-flex; align-items: center; border: var(--line); border-radius: 12px; margin: 8px 0 16px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; font-weight: 700; }
.qty output { min-width: 36px; text-align: center; font-weight: 800; }

/* Carrito */
.drawer-overlay { place-items: stretch end; padding: 0; }
.drawer {
  width: min(100vw, 420px); height: 100%; background: var(--paper); border-left: var(--line);
  display: flex; flex-direction: column; animation: slide .25s ease both;
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: var(--line); }
.drawer-head h2 { font-size: 28px; }
.drawer-head .close { position: static; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 2px solid var(--mortar); }
.line-art { border: 2.5px solid var(--ink); border-radius: 10px; background: var(--c); padding: 6px; }
.line-name { font-weight: 700; font-size: 15px; margin: 0; line-height: 1.3; }
.line-price { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.line .qty { margin: 0; }
.line .qty button { width: 32px; height: 32px; font-size: 18px; }
.line .qty output { min-width: 24px; font-size: 15px; }
.drawer-foot { border-top: var(--line); padding: 20px; display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row.muted { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.drawer-empty { text-align: center; padding: 48px 8px; }
.drawer-empty p { margin: 0 0 16px; }

.checkout-dialog h2 { font-size: 30px; margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 800; margin-bottom: 8px; }
.option {
  display: flex; align-items: center; gap: 10px; border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; font-weight: 500;
}
.option span { margin-left: auto; font-size: 14px; color: var(--muted); text-align: right; }
.option:has(input:checked) { background: #eafbe9; box-shadow: var(--pop-sm); }
.option input { accent-color: var(--ink); width: 18px; height: 18px; }
.row.total { font-size: 20px; margin: 4px 0 16px; }
.demo-note { background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 12px; padding: 12px 14px; margin: 16px 0 0; font-size: 15px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 200%); visibility: hidden;
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 18px; font-weight: 700;
  transition: transform .25s ease, visibility .25s; box-shadow: 4px 4px 0 var(--green);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Página legal */
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px) 96px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
.legal-page h2 { font-size: 24px; margin: 40px 0 12px; }
.legal-page p, .legal-page li { max-width: 68ch; }
.legal-page .back { font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stickers { max-width: 340px; order: -1; }
  .product-dialog { grid-template-columns: 1fr; }
  .pm-art { max-height: 300px; }
  .pm-art svg { width: 60%; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .cart-btn { margin-left: auto; }
  .cart-btn > span:not(.cart-count) { display: none; }
  .brand-chill { font-size: 28px; }
  .perks { grid-template-columns: 1fr; }
  .perks p + p { border-left: 0; border-top: var(--line); }
  .branch-list { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 15px; }
  .card-price { font-size: 19px; }
  .card-add { padding: 9px 8px; font-size: 14px; }
  .dialog { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
