@font-face {
  font-family: Figtree;
  src: url("./assets/Figtree-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #faf8ef;
  --ink: #181818;
  --acid: #edfb4d;
  --purple: #b6a0ff;
  --line: 2px solid var(--ink);
  --heavy: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { color: var(--ink); background: var(--purple); }
:focus-visible { outline: 3px solid #561ecc; outline-offset: 4px; }
.wrap { width: min(100% - 5rem, 74rem); margin-inline: auto; }
.skip { position: absolute; top: -4rem; left: 1rem; z-index: 4; padding: .6rem; background: white; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header { border-bottom: var(--line); background: var(--paper); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.8rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font: 700 clamp(1.15rem, 2.7vw, 1.55rem)/1 Figtree, Arial, sans-serif; letter-spacing: -.055em; text-decoration: none; }
.brand-amp { padding-inline: .07em; }
.brand-mark { display: grid; place-items: center; width: 2.38rem; height: 2.38rem; background: var(--acid); border: var(--line); box-shadow: 2px 2px 0 var(--ink); }
.brand-mark span { position: relative; width: 1.22rem; height: .89rem; margin-bottom: .16rem; border: 2px solid currentColor; }
.brand-mark span::before { content: ""; position: absolute; top: .22rem; left: .2rem; width: .59rem; height: .12rem; background: currentColor; }
.brand-mark span::after { content: ""; position: absolute; bottom: -.31rem; left: .09rem; width: .31rem; height: .31rem; background: var(--acid); border: solid currentColor; border-width: 0 0 2px 2px; transform: skewY(-37deg); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 2.75rem; padding: .5rem .95rem; border: var(--line); color: var(--ink); background: white; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font: 700 .94rem/1.2 Figtree, Arial, sans-serif; }
.button:hover, .button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.instagram { background: var(--purple); }
.insta-icon { position: relative; width: .96rem; height: .96rem; border: 1.7px solid; border-radius: .25rem; }
.insta-icon::before { content: ""; position: absolute; inset: .18rem; border: 1.4px solid; border-radius: 50%; }
.insta-icon::after { content: ""; position: absolute; width: .12rem; height: .12rem; border-radius: 50%; top: .065rem; right: .065rem; background: currentColor; }

.hero { display: grid; grid-template-columns: 1.25fr 1fr; margin-top: 2.55rem; border: var(--heavy); box-shadow: 7px 7px 0 var(--ink); }
.hero-copy { min-width: 0; padding: clamp(1.55rem, 4vw, 3.5rem); align-content: center; background: var(--acid); }
.hero-label { display: flex; align-items: center; gap: .62rem; margin-bottom: 1.4rem; font: 700 .875rem/1.35 Figtree, Arial, sans-serif; letter-spacing: .075em; }
.hero-label span { flex: 0 0 .66rem; height: .66rem; background: var(--ink); transform: rotate(45deg); }
.hero h1 { font: 900 clamp(2.9rem, 6.6vw, 6.03rem)/.94 Arial, sans-serif; letter-spacing: -.095em; }
.hero h1 span { color: var(--ink); }
.hero-description { max-width: 24rem; margin: 1.35rem 0 1.6rem; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.button-black { color: white; background: var(--ink); box-shadow: 4px 4px 0 white; min-height: 3.02rem; padding-inline: 1.1rem; }
.button-black:hover, .button-black:active { box-shadow: 2px 2px 0 white; }
.hero-product { display: grid; align-content: end; position: relative; min-height: 24rem; min-width: 0; isolation: isolate; padding: .95rem; overflow: hidden; border-left: var(--heavy); background: var(--purple); }
.hero:has(.hero-product[hidden]) { grid-template-columns: 1fr; }
.feature-image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.feature-label { position: absolute; top: 1.08rem; left: 1rem; padding: .35rem .62rem; transform: rotate(-4deg); border: var(--line); background: var(--purple); box-shadow: 3px 3px 0 var(--ink); font: 700 .86rem/1.2 Figtree, Arial, sans-serif; letter-spacing: .05em; }
.feature-label span { margin-right: .15rem; }
.feature-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding: .75rem .85rem; background: var(--paper); border: var(--line); box-shadow: 3px 3px 0 var(--ink); }
.feature-caption h2 { font: 700 clamp(1.13rem, 2vw, 1.42rem)/1.08 Figtree, Arial, sans-serif; letter-spacing: -.045em; }
.feature-model, .model { font-size: .875rem; line-height: 1.25; color: #4b4554; }
.feature-model { margin-bottom: .22rem; }
.feature-buy { min-height: 2.55rem; padding-inline: .6rem; background: var(--acid); font-size: .875rem; }
.feature-buy span, .buy span { font-size: .82rem; }
.disclosure { margin-top: 1.1rem; color: #484543; font-size: .875rem; }

.catalog { margin-block: 3.7rem 4rem; scroll-margin-top: 1.45rem; }
.catalog-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.05rem; border-bottom: var(--line); }
.catalog-top h2 { font: 700 clamp(2.25rem, 5.4vw, 4rem)/1 Figtree, Arial, sans-serif; letter-spacing: -.075em; }
.catalog-top h2 span { color: #7245da; }
.search { display: flex; align-items: center; gap: .65rem; width: min(100%, 18.75rem); min-height: 2.95rem; padding-inline: .85rem .55rem; border: var(--line); background: white; box-shadow: 3px 3px 0 var(--ink); }
.search:focus-within { outline: 3px solid #561ecc; outline-offset: 3px; }
.search input { min-width: 0; flex: 1; align-self: stretch; padding: .55rem .2rem; border: 0; background: transparent; color: var(--ink); outline: none; }
.search-icon { position: relative; width: .85rem; height: .85rem; margin-right: .18rem; border: 2px solid; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: .43rem; height: 2px; top: .62rem; left: .54rem; background: currentColor; transform: rotate(45deg); transform-origin: left; }
.filter-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-block: 1rem 1.25rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter { min-height: 2.65rem; padding: .34rem .9rem; border: var(--line); background: var(--paper); color: var(--ink); font: 700 .9rem/1 Figtree, Arial, sans-serif; }
.filter:hover { background: #e9e0ff; }
.filter[aria-pressed="true"] { background: var(--ink); color: white; }
.results { color: #484543; font-size: .875rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { display: grid; grid-template-rows: auto 1fr; min-width: 0; border: var(--line); background: #fff; box-shadow: var(--shadow); scroll-margin-top: 1rem; }
.card:target { outline: 4px solid #7245da; outline-offset: 5px; }
.card-media { position: relative; aspect-ratio: 1.6; border-bottom: var(--line); overflow: hidden; background: #f4eeff; }
.card-media[data-categoria="Coche"] { background: #e6f4ff; }
.card-media[data-categoria="Casa"] { background: #faf3d8; }
.card-media img { display: block; width: 100%; height: 100%; padding: .7rem; object-fit: contain; mix-blend-mode: multiply; }
#baliza-v16 .card-media { background: #26252b; }
#baliza-v16 .card-media img { padding: 0; object-fit: cover; mix-blend-mode: normal; object-position: 50% 45%; }
.category { position: absolute; top: .72rem; left: .72rem; padding: .23rem .48rem; border: var(--line); color: var(--ink); background: var(--paper); font: 700 .85rem/1.15 Figtree, Arial, sans-serif; }
.card-body { display: flex; align-items: flex-start; flex-direction: column; padding: 1rem 1rem 1.1rem; }
.card h3 { margin-top: .28rem; font: 700 clamp(1.3rem, 2.3vw, 1.7rem)/1.08 Figtree, Arial, sans-serif; letter-spacing: -.055em; }
.description { margin-block: .52rem 1rem; }
.buy { align-self: stretch; margin-top: auto; background: var(--acid); }
.empty { border: var(--line); background: white; box-shadow: var(--shadow); padding: 1.4rem; }
.empty .button { margin-top: .75rem; background: var(--purple); }

.footer { background: var(--purple); border-top: var(--heavy); }
.footer-link { font: 700 .95rem/1.2 Figtree, Arial, sans-serif; text-underline-offset: .23em; }

@media (max-width: 65rem) {
  .hero-product { min-height: 22rem; }
}
@media (max-width: 52rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero-copy { padding: 1.55rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.9vw, 4.1rem); }
  .hero-product { min-height: 19rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { min-height: 4.1rem; }
  .hero { grid-template-columns: 1fr; margin-top: 1.25rem; box-shadow: 4px 4px 0 var(--ink); }
  .hero-copy { padding: 1.4rem 1rem 1.6rem; }
  .hero-label { margin-bottom: .9rem; letter-spacing: .04em; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 4.7rem); }
  .hero-description { margin-block: .9rem 1.05rem; }
  .hero-product { min-height: 17.1rem; border-left: 0; border-top: var(--heavy); }
  .feature-image { object-position: center 66%; }
  .feature-caption { padding: .62rem; }
  .catalog { margin-block: 2.5rem 3rem; }
  .catalog-top { align-items: stretch; }
  .search { width: 100%; }
  .grid { gap: 1.15rem; }
}
@media (max-width: 31rem) {
  .grid { grid-template-columns: 1fr; }
  .brand-mark { width: 2.05rem; height: 2.05rem; }
  .instagram { padding-inline: .56rem; }
  .feature-buy { width: 100%; }
}
@media (max-width: 23rem) {
  .header-inner { gap: .4rem; }
  .brand { gap: .45rem; font-size: 1.02rem; }
  .footer-inner { flex-wrap: wrap; padding-block: .85rem; gap: .65rem 1rem; }
}
