:root {
  --red: #e30b18;
  --red-dark: #c10a16;
  --banner: #a3101a;
  --pink: #f48c93;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ececec;
  --soft: #f5f6f8;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --max: 1180px;
  --font: "Jost", "Segoe UI", system-ui, sans-serif;
  --display: "Jost", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.45;
  font-size: 16px;
}
img { max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, .pill, .section-title, .shop-name {
  font-family: var(--display);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand img { height: 56px; width: auto; display: block; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
}
.main-nav a[aria-current="page"] { color: var(--red); }

.search-row {
  display: flex;
  align-items: stretch;
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.search-row input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
}
.search-row input:focus { outline: none; }
.search-row:focus-within { border-color: var(--red); }
.search-row .btn-search {
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  border-radius: 0;
}
.search-row .btn-search:hover { color: var(--red); }

.subnav { border-top: 1px solid var(--line); }
.subnav-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
}
.subnav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: #444;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.subnav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.page { padding: 0 0 72px; }

.hero { position: relative; background: #fff; overflow: hidden; }
.hero-viewport { overflow: hidden; touch-action: pan-y; }
.hero-track { display: flex; transition: transform 0.45s ease; }
.hero-slide { min-width: 100%; }
.banner-slide {
  display: block;
  min-height: 0;
  padding: 0;
  background: #fff;
  line-height: 0;
}
.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-arrow {
  position: absolute;
  top: 46%;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: var(--red); box-shadow: none; }

.home-block { padding: 18px 0 8px; }
.section-title {
  margin: 8px 0 16px;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-title.left { text-align: left; margin-bottom: 8px; }

.rail-wrap { position: relative; }
.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}
.rail-arrow {
  display: none;
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: #222;
}
.rail-prev { left: -6px; }
.rail-next { right: -6px; }

.shop-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(20, 20, 20, 0.04);
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: center;
  flex: 0 0 210px;
  scroll-snap-align: start;
}
.shop-grid { align-items: stretch; }
.shop-grid .shop-card { flex: initial; height: 100%; }
.photo {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border: 0;
  padding: 8px;
  overflow: hidden;
  background: #fff;
  display: block;
  text-decoration: none;
  color: inherit;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.noimg { display: grid; place-items: center; color: var(--muted); font-size: 0.8rem; }
.badge, .off {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge { padding: 3px 8px; }
.off {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
}
.shop-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.shop-cat {
  margin: 0;
  min-height: 1.2em;
  color: #9a9a9a;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shop-cat a { text-decoration: none; color: inherit; }
.meta {
  margin: 0;
  min-height: 1.35em;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.was {
  font-weight: 500;
  color: #9a9a9a;
  text-decoration: line-through;
  margin-right: 6px;
  font-size: 0.86em;
}

.cat-tile {
  flex: 0 0 168px;
  scroll-snap-align: start;
  text-decoration: none;
  text-align: center;
  color: inherit;
}
.cat-photo {
  display: block;
  aspect-ratio: 1;
  background: var(--soft);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-tile strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  min-height: 2.5em;
}
.cat-tile span { display: block; color: #8a8a8a; font-size: 0.75rem; }

.envios-banner { display: block; line-height: 0; }
.envios-banner img { width: 100%; height: auto; display: block; border-radius: 8px; }

.pink-band {
  background: var(--pink);
  color: #fff;
  padding: 28px 0;
  margin: 22px 0;
}
.pink-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
}
.pink-band p { margin: 0; }
.secure-row { display: flex; gap: 16px; align-items: flex-start; }
.secure-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  background: var(--red);
  display: grid;
  place-items: center;
}
.offer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.offer-head p { margin: 0; max-width: 62ch; color: #333; }
.text-link {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comunidad-card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 22px 22px 18px;
  max-width: 460px;
}
.comunidad-lead { font-weight: 600; margin: 0 0 10px; }
.comunidad-card ul { margin: 0 0 14px; padding-left: 18px; }
.comunidad-card li { margin: 4px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill:hover { background: var(--red-dark); }
.pill-light { background: #fff; color: var(--red); border: 1px solid #f0d0d2; }
.pill-light:hover { background: #fff5f5; }

.tienda-banner {
  position: relative;
  background: var(--banner);
  color: #fff;
  overflow: hidden;
  min-height: 240px;
  margin-bottom: 8px;
}
.tienda-banner-inner { position: relative; z-index: 2; padding: 40px 72px 36px; }
.tienda-banner h1 {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}
.tienda-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
}
.tienda-cats a {
  text-decoration: none;
  color: #fff;
  text-align: center;
  width: 148px;
}
.tienda-cats strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
}
.tienda-cats span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}
.edge {
  position: absolute;
  z-index: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  border: 4px solid rgba(255, 255, 255, 0.2);
}
.edge-l { left: -46px; bottom: -36px; width: 92px; height: 92px; }
.edge-l2 { left: -36px; top: -32px; width: 68px; height: 68px; }
.edge-r { right: -42px; bottom: -38px; top: auto; width: 96px; height: 96px; }

.prose { padding: 28px 0 8px; max-width: 68ch; }
.prose h1 { margin: 0 0 10px; font-size: 1.8rem; font-weight: 600; }
.prose p { margin: 0 0 10px; }
.prose a { color: var(--red); }
.catalog-block { padding: 8px 0 28px; background: var(--soft); }
.catalog-block .wrap, .page > .catalog-block { }
.page > .catalog-block { padding-left: 0; padding-right: 0; }
.catalog-block .status, .catalog-block .shop-grid {
  width: min(var(--max), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.status { margin: 12px auto; color: var(--muted); min-height: 1.2em; }
.status a { font-weight: 700; color: var(--red); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  width: auto;
  max-width: 100%;
}
.btn-wa { background: var(--red); color: #fff; }
.btn-wa:hover { background: var(--red-dark); }
.btn-plain { background: var(--soft); color: var(--ink); }

.product-layout {
  display: grid;
  gap: 22px;
  padding: 28px 0 10px;
}
.product-gallery {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.product-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: #fff;
}
.product-info h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}
.product-price .meta { font-size: 1.45rem; }
.product-desc {
  color: #555;
  white-space: pre-line;
  margin: 12px 0 16px;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wa-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}
.wa-pill:hover { background: var(--wa-dark); }
.product-cat { margin: 16px 0 0; color: var(--muted); }
.product-cat a { color: var(--red); font-weight: 600; }
.muted { color: var(--muted); }

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 32px 0 0;
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #333; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.footer-logo img { width: 140px; height: auto; }
.footer-label {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-grid { display: grid; gap: 22px; padding-bottom: 22px; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { font-weight: 600; }
#wa-footer { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
#wa-footer .btn { margin-top: 0; color: #fff; }
#wa-footer .btn:hover { color: #fff; }
.footer-bar {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 0.85rem;
  color: #555;
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 30px; height: 30px; display: block; }

dialog {
  border: 0;
  padding: 16px;
  width: min(560px, calc(100% - 24px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
dialog::backdrop { background: rgba(20, 20, 20, 0.55); }
.detail-photo {
  aspect-ratio: 1;
  max-height: 280px;
  width: 100%;
  background: var(--soft);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.detail-photo img { width: 100%; height: 100%; max-height: 280px; object-fit: contain; }
.detail-text { white-space: pre-line; margin: 8px 0 14px; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.picker-list { display: grid; gap: 8px; margin: 12px 0; }
.picker-list .btn { width: 100%; }

.miss { position: relative; padding: 80px 0 40px; text-align: center; }
.miss-bg {
  margin: 0;
  font-size: 8rem;
  font-weight: 700;
  color: #ececec;
  line-height: 0.8;
}
.miss h1 { margin: -1.2rem 0 8px; color: var(--red); font-size: 1.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.miss a { color: var(--red); font-weight: 600; }

body[data-page="sobre"] .catalog-block,
body[data-page="contacto"] .catalog-block,
body[data-page="legal"] .catalog-block,
body[data-page="producto"] .catalog-block,
body[data-page="home"] .catalog-block { display: none; }
body[data-page="home"].is-search .catalog-block { display: block; }
body[data-page="home"].is-search #intro { display: none; }

@media (min-width: 800px) {
  .header-top { flex-wrap: nowrap; }
  .search-row { flex: 1 1 auto; max-width: 320px; }
  .rail-arrow { display: grid; place-items: center; }
  .product-layout { grid-template-columns: 1fr 1fr; align-items: start; gap: 36px; }
  .footer-grid { grid-template-columns: 1.1fr 0.8fr 1.3fr 1.2fr; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .edge { display: block; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  .topbar { font-size: 0.72rem; }
  .brand { order: 1; }
  .nav-toggle { display: inline-flex; order: 2; }
  .search-row { flex: 1 1 100%; order: 3; max-width: none; }
  .main-nav {
    display: none;
    order: 4;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 0 8px;
  }
  .site-header.is-open .main-nav { display: flex; }
  .subnav { display: none; }
  .site-header.is-open .subnav { display: block; order: 5; }
  .hero-arrow { display: none; }
  .edge { display: none; }
  .tienda-banner-inner { padding: 22px 4px 18px; }
  .tienda-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
    justify-items: center;
  }
  .tienda-cats a { width: 100%; max-width: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { transition: none; }
}
