/* El aro queda detrás de la foto para conservar los colores de la pieza. */
header .brand {
  --diametro: clamp(78px, 7.8vw, 106px);
  position:relative;isolation:isolate;min-height:calc(var(--diametro) + 24px);
  gap:clamp(14px,1.7vw,26px);color:#fff8f1;white-space:nowrap;
}
header .nav{min-height:unset}
header .brand img {
  width:var(--diametro);height:var(--diametro);object-fit:cover;
  position:relative;z-index:1;outline:1px solid #ffefd6;
}
header .brand span {
  font-family:"Inter",system-ui,sans-serif;font-size:clamp(2.2rem,4.15vw,4.35rem);
  line-height:1.02;font-weight:800;letter-spacing:-.065em;
  color:#fff9ef;text-shadow:0 0 1px #fff,0 0 7px #ffac6d85,0 0 22px #fa4e5870;
}
@supports (background-clip:text) {
  header .brand span {
    color:transparent;background-image:linear-gradient(103deg,#fff8f4 14%,#fff0bd 32%,#f7a3a0 42%,#fff9eb 51%,#fff8f5 68%);
    background-clip:text;background-size:225% 100%;animation:ml-reflejo 8s ease-in-out infinite alternate;
  }
}
header .brand::before, header .brand::after, .category-rail button::before, .category-rail button::after {
  content:"";border-radius:50%;pointer-events:none;
}
header .brand::before,header .brand::after {
  position:absolute;left:-3px;top:calc(50% - var(--diametro)/2 - 3px);
  width:calc(var(--diametro) + 6px);height:calc(var(--diametro) + 6px);
}
header .brand::before,.category-rail button::before {
  background:conic-gradient(from 20deg,#ff7543,#ffe4a3 12%,#f34483 29%,#652649 43%,#f65441 61%,#fff7bb 79%,#65ded1 89%,#ff7543);
}
header .brand::after,.category-rail button::after {
  background:radial-gradient(ellipse at 29% 22%,#ffca68 0 9%,transparent 44%),
             radial-gradient(ellipse at 78% 68%,#ff2775 0 10%,transparent 42%),
             radial-gradient(ellipse at 34% 66%,#ff6d1c 0 20%,transparent 62%);
  filter:blur(7px);z-index:-1;
}
header .brand::before{animation:ml-aro 9s linear infinite}
header .brand::after{animation:ml-brasa 3.4s ease-in-out infinite alternate}
.category-rail {padding:13px 10px 11px;gap:clamp(8px,1.8vw,28px)}
.category-rail button{
  --diametro:clamp(62px,5.2vw,78px);position:relative;isolation:isolate;grid-template-rows:auto auto;
  min-width:calc(var(--diametro) + 17px);gap:10px;
}
.category-rail button img,.category-rail button::before,.category-rail button::after{grid-column:1;grid-row:1;align-self:center;justify-self:center}
.category-rail button img{
  width:var(--diametro);height:var(--diametro);position:relative;z-index:1;
  outline:1px solid #233a381f;outline-offset:2px;transition:transform .22s;
}
.category-rail button span{grid-column:1;grid-row:2;z-index:1}
.category-rail button::before,.category-rail button::after{
  width:calc(var(--diametro) + 6px);height:calc(var(--diametro) + 6px);
  opacity:0;transition:opacity .22s;
}
@media (hover:hover) {
  .category-rail button:hover::before{opacity:1;animation:ml-aro 3s linear infinite}
  .category-rail button:hover::after{opacity:1;animation:ml-brasa 1.9s ease-in-out infinite alternate}
  .category-rail button:hover img{outline:1px solid #ffdcaa;outline-offset:0}
}
.category-rail button:is(:focus-visible,:active)::before{opacity:1;animation:ml-aro 3s linear infinite}
.category-rail button:is(:focus-visible,:active)::after{opacity:1;animation:ml-brasa 1.9s ease-in-out infinite alternate}
.category-rail button[aria-pressed=true] img{outline:2px solid #aa4b3e;outline-offset:3px}
@keyframes ml-aro {to{transform:rotate(360deg)}}
@keyframes ml-brasa {from{transform:translateY(0) scale(1.01);opacity:.65}to{transform:translateY(-3px) scale(1.15,1.12);opacity:1}}
@keyframes ml-reflejo {from{background-position:0% 50%}to{background-position:100% 50%}}
@media(max-width:650px){
  header .brand{--diametro:64px;gap:14px;min-height:82px}
  header .brand span{font-size:clamp(2.1rem,9vw,3rem)}
  .category-rail{padding:12px 6px}.category-rail button{--diametro:52px}
}
@media(prefers-reduced-motion:reduce){
  header .brand::before, header .brand::after, header .brand span,
  .category-rail button::before,.category-rail button::after{animation:none!important;transition:none}
}
