/* GIN — sitio por marcas (portada + página de cada marca). Usa tokens.css y fonts.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--font-text); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ink-dark); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; background: transparent; cursor: pointer; text-decoration: none; font-weight: 600;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-line { border-color: rgba(255, 255, 255, 0.22); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: var(--accent-press); }
  .btn-line:hover { border-color: var(--ink); }
}
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: #fff; color: var(--ink-dark); font-size: 0.875rem; }

/* ---------- Encabezado ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding: 0 var(--margin); background: linear-gradient(to bottom, rgba(8, 9, 11, 0.92), rgba(8, 9, 11, 0));
  transition: background-color var(--dur-ui) ease;
}
.top.is-solid { background: rgba(8, 9, 11, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.top-logo { display: grid; place-items: center; width: 44px; height: 44px; background: #fff; border-radius: 8px; overflow: hidden; }
.top-logo img { width: 40px; height: 40px; }
.top-brand span { font: 700 1rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; max-width: 14ch; }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a { text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; color: #d9dbde; }
.top nav a[aria-current="page"], .top nav a:hover { color: #fff; }
@media (max-width: 640px) { .top nav { display: none; } .top-quote { margin-left: auto; } .top-brand span { display: none; } }

/* ---------- Portada ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 24px) var(--margin) 64px; overflow: hidden; isolation: isolate;
}
.hero::before { /* brillo rojo bajo el logo */
  content: ""; position: absolute; left: 50%; top: 46%; width: min(1100px, 130vw); aspect-ratio: 2 / 1; z-index: -1;
  transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(225, 6, 0, 0.32), rgba(225, 6, 0, 0.08) 55%, transparent);
  filter: blur(10px);
}
.hero-hardware {
  position: absolute; inset: var(--nav-h) 0 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.hero-hardware span {
  position: absolute; left: var(--x); top: var(--y); width: var(--size); aspect-ratio: 1;
  opacity: var(--opacity); transform: rotate(var(--angle));
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  mask-image: radial-gradient(circle, transparent 26%, #000 28%);
  background:
    radial-gradient(circle, #54575e 28%, #303238 32%, transparent 39%),
    conic-gradient(from 30deg, #373941 0deg 60deg, #4b4d55 60deg 120deg, #272930 120deg 180deg,
      #3b3338 180deg 240deg, #59545a 240deg 300deg, #35333a 300deg);
}
.hero-hardware span:nth-child(1) { --x: 8%; --y: 19%; --size: clamp(38px, 8vw, 105px); --angle: -18deg; --opacity: .52; --duration: 24s; --delay: -8s; }
.hero-hardware span:nth-child(2) { --x: 17%; --y: 66%; --size: clamp(22px, 4vw, 52px); --angle: 16deg; --opacity: .36; --duration: 19s; --delay: -4s; }
.hero-hardware span:nth-child(3) { --x: 81%; --y: 16%; --size: clamp(27px, 5vw, 64px); --angle: 21deg; --opacity: .44; --duration: 22s; --delay: -12s; }
.hero-hardware span:nth-child(4) { --x: 85%; --y: 57%; --size: clamp(40px, 8vw, 100px); --angle: -12deg; --opacity: .48; --duration: 27s; --delay: -9s; }
.hero-hardware span:nth-child(5) { --x: 72%; --y: 78%; --size: clamp(20px, 3vw, 38px); --angle: 35deg; --opacity: .32; --duration: 20s; --delay: -14s; }
@media (prefers-reduced-motion: no-preference) {
  .hero-hardware span { animation: hardware-drift var(--duration) ease-in-out var(--delay) infinite; }
}
@keyframes hardware-drift {
  0%, 100% { transform: translate(0, 8px) rotate(var(--angle)); }
  50% { transform: translate(12px, -14px) rotate(calc(var(--angle) + 38deg)); }
}
@media (max-width: 600px) {
  .hero-hardware span:nth-child(2), .hero-hardware span:nth-child(5) { display: none; }
  .hero-hardware span:nth-child(4) { --x: 83%; --y: 72%; }
}

.hero-plate { width: min(400px, 62vw); aspect-ratio: 1; margin: 0 auto; }
.hero-logo { width: 100%; height: 100%; object-fit: contain; }
.hero-sub { margin: 8px auto 0; max-width: 34ch; color: #d9dbde; font-size: var(--step-lead); line-height: 1.35; }
.hero .actions { justify-content: center; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--muted); font-size: var(--step-small); text-decoration: none; display: grid; justify-items: center; gap: 6px; min-height: 44px; }
.hero-cue::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--muted), transparent); }

/* Entrada de la portada */
@media (prefers-reduced-motion: no-preference) {
  .hero-plate { animation: logo-in 1100ms var(--ease-out) both; }
  .hero-sub, .hero .actions { animation: rise 800ms var(--ease-out) both; }
  .hero-sub { animation-delay: 930ms; }
  .hero .actions { animation-delay: 1050ms; }
  /* Con la pantalla de entrada, la portada aparece cuando el logo termina */
  .hero-plate { animation-delay: 700ms; }
}
@keyframes logo-in { from { opacity: 0; transform: perspective(900px) rotateX(18deg) scale(0.86); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Pantalla de entrada (al abrir la página) ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); pointer-events: none; }
.splash::before { /* brillo rojo que se enciende detrás del logo */
  content: ""; position: absolute; width: min(900px, 140vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 6, 0, 0.5), rgba(225, 6, 0, 0.1) 55%, transparent); opacity: 0;
}
.splash-plate { position: relative; width: min(340px, 64vw); aspect-ratio: 1; }
.splash-plate img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .splash { animation: splash-out 450ms var(--ease-in-out) 650ms forwards; }
  .splash::before { animation: glow-on 650ms ease-out forwards; }
  .splash-plate { animation: plate-in 650ms var(--ease-out) both; }
}
@keyframes plate-in { from { opacity: 0; transform: perspective(900px) rotateY(-24deg) scale(0.84); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes glow-on { to { opacity: 1; } }
@keyframes splash-out { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 9vw, 140px) var(--margin); }
.section-head { display: grid; gap: 12px; margin: 0 auto 40px; max-width: 1280px; }
.section-title { margin: 0; font: 800 var(--step-head)/0.92 var(--font-display); text-transform: uppercase; }
.section-lede { margin: 0; color: #c9ccd1; max-width: 52ch; }

/* ---------- Marcas (portada) ---------- */
.brands { max-width: 1280px; margin: 0 auto; display: grid; gap: var(--gutter); grid-template-columns: repeat(3, 1fr); perspective: 1400px; }
.brands-more { margin-top: var(--gutter); grid-template-columns: repeat(6, 1fr); }
.brand-tile {
  --rx: 0deg; --ry: 0deg; position: relative; display: grid; grid-template-rows: 1fr auto; gap: 18px; min-height: 260px; padding: 28px;
  text-decoration: none; background: #f3f3ef; color: var(--ink-dark); overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 500ms var(--ease-out), box-shadow 300ms ease;
}
.brand-tile.is-dark { background: #17191d; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.08); }
.brand-tile::after { /* barrido de color de la marca */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tone, var(--accent));
  transform: scaleX(0.18); transform-origin: left; transition: transform 500ms var(--ease-out);
}
.brand-logo { align-self: center; justify-self: center; width: 78%; max-height: 120px; object-fit: contain; transform: translateZ(40px); transition: transform 500ms var(--ease-out); }
.brand-word { align-self: center; justify-self: center; font: 800 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.brand-meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; transform: translateZ(20px); }
.brand-note { margin: 0; font-size: var(--step-small); color: #4c525a; max-width: 30ch; }
.brand-tile.is-dark .brand-note { color: var(--muted); }
.brand-count { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brand-count small { display: block; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.brands-more .brand-tile { min-height: 150px; padding: 18px; gap: 10px; }
.brands-more .brand-word { font-size: 1.5rem; }
.brands-more .brand-note { display: none; }
@media (hover: hover) and (pointer: fine) {
  .brand-tile:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
  .brand-tile:hover::after { transform: scaleX(1); }
  .brand-tile:hover .brand-logo { transform: translateZ(70px) scale(1.04); }
}
@media (max-width: 1000px) { .brands { grid-template-columns: repeat(2, 1fr); } .brands-more { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .brand-tile { min-height: 190px; padding: 18px; } .brand-note { display: none; } .brands-more { grid-template-columns: repeat(2, 1fr); } }

/* Entrada en 3D al aparecer */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-3d { opacity: 0; transform: perspective(1200px) rotateX(-22deg) translateY(40px); }
  .js .reveal-3d.is-in { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 700ms ease, transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
}

/* ---------- Visítanos ---------- */
.visit { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gutter); }
.visit-card { background: var(--surface); padding: clamp(24px, 3vw, 44px); display: grid; gap: 22px; align-content: start; }
.visit-card h3 { margin: 0; font: 800 var(--step-sub)/1 var(--font-display); text-transform: uppercase; }
.visit-card address { font-style: normal; color: #d9dbde; }
.visit-rows { margin: 0; display: grid; gap: 12px; }
.visit-rows div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-top: 1px solid var(--steel); padding-top: 12px; }
.visit-rows dt { color: var(--muted); }
.visit-rows dd { margin: 0; }
.visit-map { position: relative; min-height: 320px; background: radial-gradient(60% 60% at 50% 45%, #2a1210, #0d0e10 70%); display: grid; place-items: center; text-align: center; padding: 32px; overflow: hidden; }
.visit-map p { margin: 0 0 18px; font: 800 clamp(2.5rem, 2rem + 3vw, 5rem)/0.9 var(--font-display); text-transform: uppercase; }
.visit-map p span { color: var(--accent); display: block; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--steel); padding: 40px var(--margin) 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px 32px; font-size: var(--step-small); color: var(--muted); }
.foot p, .foot address { margin: 0; font-style: normal; }
.foot-name { color: var(--ink); font-weight: 600; margin-bottom: 6px !important; }
.foot a { color: #d9dbde; }
.foot nav { display: flex; flex-direction: column; }
.foot nav a { text-decoration: none; min-height: 34px; display: inline-flex; align-items: center; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-note { grid-column: 1 / -1; border-top: 1px solid var(--steel); padding-top: 18px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Página de marca ---------- */
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; isolation: isolate; background: var(--bg); pointer-events: none; }
.intro[hidden] { display: none; }
.intro span {
  position: relative; padding: 0 16px; text-align: center;
  font: 800 clamp(2.5rem, 10vw, 7rem)/1 var(--font-display); text-transform: uppercase;
  color: #fff; text-shadow: 0 3px 18px #08090b, 0 0 24px var(--intro-color, var(--tone));
}
.intro-effect {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--intro-color, var(--tone)) 22%, transparent), transparent 58%);
}
.intro-effect::before, .intro-effect::after {
  content: ""; position: absolute; inset: 0; margin: auto;
}
.intro[data-effect="strike"] { --intro-color: #f31e3b; }
.intro[data-effect="electric"] { --intro-color: #68bfff; }
.intro:is([data-effect="strike"], [data-effect="electric"]) .intro-effect::before,
.intro[data-effect="electric"] .intro-effect::after {
  width: min(78vw, 700px); height: min(52vh, 370px);
  background: linear-gradient(125deg, var(--intro-color) 28%, #effaff 56%, var(--intro-color) 78%);
  clip-path: polygon(92% 0, 44% 42%, 68% 39%, 7% 100%, 49% 51%, 27% 54%);
}
.intro[data-effect="strike"] .intro-effect::before { background: #f31e3b; }
.intro[data-effect="electric"] .intro-effect::after { scale: .72; rotate: 16deg; }
.intro[data-effect="impact"] .intro-effect::before {
  width: min(58vw, 420px); aspect-ratio: 1; border: 3px solid var(--tone); border-radius: 50%;
  box-shadow: 0 0 22px var(--tone), inset 0 0 12px var(--tone);
}
.intro[data-effect="disc"] .intro-effect::before {
  width: min(58vw, 390px); aspect-ratio: 1; border-radius: 50%; border: 5px dashed var(--tone);
  box-shadow: inset 0 0 0 12px color-mix(in srgb, var(--tone) 22%, transparent);
}
.intro[data-effect="sparks"] .intro-effect::before {
  width: min(72vw, 600px); aspect-ratio: 2;
  background: repeating-conic-gradient(from 9deg, var(--tone) 0deg 1.5deg, transparent 2deg 27deg);
  mask-image: radial-gradient(ellipse, transparent 30%, #000 56%, transparent 72%);
}
.intro[data-effect="sweep"] .intro-effect::before {
  width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--tone), transparent);
  box-shadow: 0 0 24px var(--tone);
}
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: intro-out 340ms var(--ease-in-out) 850ms both; }
  .intro span { animation: intro-name 680ms var(--ease-out) 90ms both; }
  .intro-effect::before { animation: intro-sweep 740ms var(--ease-out) both; }
  .intro[data-effect="strike"] .intro-effect::before { animation: intro-strike 700ms var(--ease-out) both; }
  .intro[data-effect="electric"] .intro-effect::before { animation: intro-electric 540ms ease-out both; }
  .intro[data-effect="electric"] .intro-effect::after { animation: intro-electric 420ms ease-out 160ms both; }
  .intro:is([data-effect="impact"], [data-effect="sparks"]) .intro-effect::before { animation: intro-impact 770ms var(--ease-out) both; }
  .intro[data-effect="disc"] .intro-effect::before { animation: intro-disc 810ms var(--ease-out) both; }
}
@keyframes intro-name {
  from { opacity: 0; transform: translateY(18px) scale(.91); letter-spacing: .12em; }
  55%, to { opacity: 1; }
  to { transform: none; letter-spacing: 0; }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-strike {
  0% { opacity: 0; clip-path: polygon(92% 0, 92% 0, 92% 0, 92% 0, 92% 0, 92% 0); }
  38% { opacity: .82; }
  75% { opacity: .42; }
  100% { opacity: 0; }
}
@keyframes intro-electric { 0%, 100% { opacity: 0; } 42% { opacity: .66; } }
@keyframes intro-impact { from { opacity: .9; transform: scale(.35); } to { opacity: 0; transform: scale(1.22); } }
@keyframes intro-disc { from { opacity: .7; transform: rotate(-70deg) scale(.65); } to { opacity: 0; transform: rotate(35deg) scale(1.12); } }
@keyframes intro-sweep { from { opacity: .85; transform: translateY(58px) scaleX(.28); } to { opacity: 0; transform: translateY(-58px) scaleX(1); } }

.bhero { position: relative; padding: calc(var(--nav-h) + clamp(32px, 5vw, 72px)) var(--margin) 32px; overflow: hidden; isolation: isolate; }
.bhero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 80% at 80% 30%, color-mix(in srgb, var(--tone, #e10600) 26%, transparent), transparent 70%); }
.bhero-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
.bhero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
.crumbs { margin: 0 0 18px; font-size: var(--step-small); color: var(--muted); }
.crumbs a { color: #d9dbde; }
.bhero-logo { display: inline-grid; place-items: center; background: #f3f3ef; padding: 18px 24px; margin-bottom: 18px; }
.bhero-logo.is-dark { background: #17191d; }
.bhero-logo img { height: clamp(48px, 6vw, 72px); width: auto; max-width: 70vw; object-fit: contain; }
.bhero h1 { margin: 0; font: 800 var(--step-display)/0.85 var(--font-display); text-transform: uppercase; }
.bhero-note { margin: 14px 0 0; color: #d9dbde; max-width: 46ch; font-size: var(--step-lead); line-height: 1.35; }
.bstats { margin: 0; display: flex; gap: 28px; }
.bstats div { display: grid; }
.bstats dt { order: 2; color: var(--muted); font-size: var(--step-small); }
.bstats dd { margin: 0; font: 800 clamp(2.5rem, 2rem + 2vw, 4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bsite { margin: 14px 0 0; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 760px) { .bhero-inner { grid-template-columns: 1fr; } }

/* Vista destacada (producto protagonista con puntos de ficha, estilo VEYRA) */
.spot { max-width: 1280px; margin: 8px auto 0; padding: 0 var(--margin); }
.spot-frame {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; min-height: 420px; padding: clamp(18px, 3vw, 40px);
  border: 3px solid #fff; border-radius: 16px; background: radial-gradient(70% 70% at 35% 55%, #262a31, #101216 72%); overflow: hidden;
}
.spot-stage { position: relative; perspective: 1100px; }
.spot-img { --rx: 0deg; --ry: 0deg; width: 100%; height: clamp(260px, 36vw, 440px); object-fit: contain; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 400ms var(--ease-out); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.6)); }
.spot-pin {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; transform: translate(-50%, -50%);
  border: 0; background: transparent; cursor: pointer; padding: 0;
}
.spot-pin i { width: 26px; height: 26px; border-radius: 50%; background: #edff39; color: #10190c; display: grid; place-items: center; font-style: normal; font-size: 18px; line-height: 1; box-shadow: 0 0 0 6px rgba(237, 255, 57, 0.18); transition: transform 200ms var(--ease-out); }
.spot-pin[aria-pressed="true"] i { transform: rotate(45deg) scale(1.1); }
@media (hover: hover) and (pointer: fine) { .spot-pin:hover i { transform: scale(1.12); } }
.spot-body h2 { margin: 0 0 6px; font: 800 var(--step-sub)/1 var(--font-display); text-transform: uppercase; }
.spot-kicker { margin: 0 0 8px; color: var(--muted); font-size: var(--step-small); }
.spot-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 4px; }
.spot-list button { width: 100%; text-align: left; display: grid; gap: 2px; background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 0; cursor: pointer; min-height: 48px; }
.spot-list small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.spot-list span { font-weight: 600; }
.spot-list button[aria-pressed="true"] span { color: #edff39; }
@media (max-width: 860px) { .spot-frame { grid-template-columns: 1fr; border-radius: 12px; } }

/* Barra de filtros */
.bar { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(8, 9, 11, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bar-inner { max-width: 1280px; margin: 0 auto; padding: 12px var(--margin); display: grid; gap: 10px; }
.bar-row { display: flex; gap: 12px; align-items: center; }
.search { flex: 1; }
.search input { width: 100%; min-height: 46px; padding: 0 14px; background: var(--surface); border: 1px solid var(--steel); color: var(--ink); font: inherit; }
.toggle { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; font-size: var(--step-small); color: #d9dbde; min-height: 44px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; cursor: pointer; font-size: 0.9375rem; color: #d9dbde; }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink-dark); border-color: #fff; }
.chip small { opacity: 0.6; margin-left: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .bar { position: static; } .bar-row { flex-wrap: wrap; gap: 4px 16px; } .search { flex-basis: 100%; } .toggle { min-height: 40px; } }

/* Rejilla de productos */
.products { max-width: 1280px; margin: 0 auto; padding: 28px var(--margin) 80px; }
.pcount { margin: 0 0 18px; color: var(--muted); font-size: var(--step-small); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); perspective: 1600px; }
.card { --rx: 0deg; --ry: 0deg; display: grid; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.05); content-visibility: auto; contain-intrinsic-size: 260px 420px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 400ms var(--ease-out), border-color 200ms ease; }
.card-open { all: unset; cursor: pointer; display: grid; }
.card-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pframe { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(70% 60% at 50% 58%, #2a2f37, #15171b 72%); overflow: hidden; }
.pframe::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 9%; height: 6%; border-radius: 50%; background: rgba(0, 0, 0, 0.55); filter: blur(10px); }
.pframe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 11%; z-index: 1; transition: transform 500ms var(--ease-out); }
.pframe.is-white { background: #fff; }
.pframe.is-white::after { display: none; }
.pframe.is-white img { mix-blend-mode: multiply; }
.ptag { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 8px; font-size: 0.75rem; background: rgba(8, 9, 11, 0.7); color: #d9dbde; }
.pnone { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 16px; text-align: center; }
.pnone b { font: 800 clamp(1.375rem, 1rem + 1vw, 1.875rem)/1 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; color: #e6e7e9; }
.pnone span { font-size: 0.8125rem; color: var(--muted); }
.pmeta { padding: 14px 16px 6px; display: grid; gap: 4px; }
.pmeta p { margin: 0; font-size: 0.8125rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.pmeta h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pfoot { padding: 8px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.stock { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.stock.is-si { color: #7fd28f; }
.stock.is-si::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.add { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
.add[aria-pressed="true"] { background: #fff; color: var(--ink-dark); border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: rgba(255, 255, 255, 0.2); }
  .card:hover .pframe img { transform: translateY(-3%) scale(1.06); }
}
.more { display: flex; justify-content: center; margin-top: 32px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card { min-width: 0; } .pmeta { padding: 10px 10px 4px; } .pfoot { padding: 6px 10px 12px; flex-direction: column; align-items: stretch; } .pmeta h3 { font-size: 0.9375rem; } }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); max-height: 92svh; }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.close { position: absolute; top: 12px; right: 12px; z-index: 3; min-height: 44px; padding: 0 14px; background: rgba(8, 9, 11, 0.7); border: 1px solid rgba(255, 255, 255, 0.16); cursor: pointer; }
.pd { width: min(1080px, 94vw); }
.pd-in { display: grid; grid-template-columns: 1fr 1fr; }
.pd-media { position: relative; background: radial-gradient(70% 60% at 50% 55%, #2a2f37, #121418 72%); min-height: 380px; display: grid; place-items: center; padding: 32px; }
.pd-media img { width: 100%; max-height: 62svh; object-fit: contain; }
.pd-media.is-white { background: #fff; }
.pd-media.is-white img { mix-blend-mode: multiply; }
.pd-credit { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; font-size: 0.75rem; color: var(--muted); }
.pd-media.is-white .pd-credit { color: #5c6168; }
.pd-credit a { color: inherit; }
.pd-body { padding: 32px; display: grid; gap: 14px; align-content: start; overflow: auto; max-height: 92svh; }
.pd-brand { margin: 0; color: var(--muted); font-size: var(--step-small); }
.pd-body h2 { margin: 0; font: 800 var(--step-sub)/1 var(--font-display); text-transform: uppercase; }
.pd-body p { margin: 0; color: #d9dbde; }
.specs { margin: 0; display: grid; gap: 2px; }
.specs div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--steel); }
.specs dt { color: var(--muted); font-size: var(--step-small); }
.specs dd { margin: 0; font-weight: 600; }
.pd-src { font-size: var(--step-small); color: var(--muted) !important; }
@media (max-width: 760px) { .pd-in { grid-template-columns: 1fr; } .pd-media { min-height: 260px; } .pd-body { max-height: none; padding: 20px; } .pd { max-height: 92svh; overflow: auto; } }

.drawer { margin: 0 0 0 auto; height: 100svh; max-height: 100svh; width: min(440px, 100vw); }
.quote { display: grid; gap: 16px; padding: 24px; }
.quote h2 { margin: 0; font: 800 var(--step-sub)/1 var(--font-display); text-transform: uppercase; }
.quote label { display: grid; gap: 6px; font-weight: 500; }
.quote input:not([type="checkbox"]), .quote textarea { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--steel); color: var(--ink); font: inherit; }
.quote .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--step-small); color: #d9dbde; }
.quote .check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.quote-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quote-items li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--steel); font-size: var(--step-small); }
.quote-items button { min-height: 40px; padding: 0 12px; background: transparent; border: 1px solid var(--steel); cursor: pointer; }
.hint { color: var(--muted); font-size: var(--step-small); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: rise 260ms var(--ease-out); }
  .drawer[open] { animation: slide-in 320ms var(--ease-drawer); }
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }

/* Escenas breves de producto para la entrada de marca. */
.intro[data-scene] .intro-effect::before { display: none; }
.intro[data-scene] .intro-stage {
  position: absolute; left: 50%; bottom: 40%; translate: -50% 0;
  width: min(78vw, 480px); height: min(48vh, 380px);
}
.intro-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
}
.intro-kong-runner {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0;
  width: min(100%, 55vh, 475px); aspect-ratio: 1; transform-origin: center bottom;
  background: url("../assets/img/entrada-kong-zancadas.webp") no-repeat;
  background-size: 200% 200%;
}
.intro[data-scene] span { align-self: start; margin-top: 0; position: absolute; top: 64%; }
.intro[data-scene="flexovit"] { --intro-color: #ff6d24; }
.intro[data-scene="eurowelding"] { --intro-color: #64bdff; }
.intro[data-scene="kong"] .intro-stage {
  width: min(88vw, 650px); height: min(55vh, 475px); bottom: 38%;
}
.intro[data-scene="kong"] .intro-stage::after {
  content: ""; position: absolute; left: 7%; right: 7%; bottom: -7%; height: 19%;
  border: 2px solid #db9a43; border-radius: 50%; opacity: 0;
  background: radial-gradient(ellipse, #a96d3b55, transparent 72%);
}
.intro:is([data-scene="avante"], [data-scene="flexovit"]) .intro-stage img {
  object-position: center; width: auto; height: 100%; max-width: 100%; margin: auto;
}
.intro:is([data-scene="avante"], [data-scene="flexovit"], [data-scene="eurowelding"]) .intro-stage::after {
  content: ""; position: absolute; width: 58%; aspect-ratio: 1;
  top: 65%; left: 61%; transform-origin: 0 0;
  background: repeating-conic-gradient(from 10deg at 0 0, transparent 0deg 8deg, #ffaf44 9deg 10deg, transparent 11deg 19deg);
  mask-image: radial-gradient(circle at 0 0, transparent 7%, #000 19%, transparent 58%);
}
.intro[data-scene="flexovit"] .intro-stage::after { left: 42%; top: 77%; rotate: 9deg; }
.intro[data-scene="eurowelding"] .intro-stage::after { left: 52%; top: 88%; rotate: -105deg; }
.intro[data-scene="eurowelding"] .intro-stage::before {
  content: ""; position: absolute; z-index: 1; width: 38%; aspect-ratio: 1; left: 52%; top: 89%;
  translate: -50% -50%; background: radial-gradient(circle, #fff 0%, #67caff 5%, #339eff63 19%, transparent 67%);
}
@media (prefers-reduced-motion: no-preference) {
  .intro[data-scene] { animation-delay: 1450ms; }
  .intro[data-scene] span { animation-delay: 750ms; }
  .intro[data-scene="kong"] { animation-delay: 2200ms; }
  .intro[data-scene="kong"] span { animation-delay: 1500ms; }
  .intro-kong-runner {
    animation: kong-charge 1460ms ease-in both, kong-stride 480ms steps(1) 3 both;
  }
  .intro[data-scene="kong"] img:last-child { animation: kong-land 700ms ease-out 1420ms both; }
  .intro[data-scene="kong"] .intro-stage::after { animation: kong-dust 600ms ease-out 1440ms forwards; }
  .intro:is([data-scene="avante"], [data-scene="flexovit"]) .intro-stage img { animation: intro-blade 1720ms ease-out both; }
  .intro[data-scene="flexovit"] .intro-stage img { animation-direction: reverse; animation-timing-function: linear; }
  .intro:is([data-scene="avante"], [data-scene="flexovit"], [data-scene="eurowelding"]) .intro-stage::after {
    animation: intro-grind 530ms ease-out 180ms 2 both;
  }
  .intro[data-scene="eurowelding"] .intro-stage img { animation: intro-welder 1560ms ease-out both; }
  .intro[data-scene="eurowelding"] .intro-stage::before { animation: intro-electric 530ms ease-out 210ms 2 both; }
}
@keyframes kong-charge {
  0% { opacity: 0; transform: translateY(-26%) scale(.29); }
  12% { opacity: 1; }
  86% { transform: translateY(-3%) scale(.91); }
  97% { opacity: 1; }
  to { opacity: 0; transform: translateY(1%) scale(1.11); }
}
@keyframes kong-stride {
  0% { background-position: 0 0; }
  25% { background-position: 100% 0; }
  50% { background-position: 0 100%; }
  75%, 100% { background-position: 100% 100%; }
}
@keyframes kong-land {
  0% { opacity: 0; transform: translateY(-6%) scale(1.12); }
  11% { opacity: 1; transform: translateY(3%) scale(1.12, 1.02); }
  18% { transform: translate(1%, -1%) scale(1.11); }
  25% { transform: translate(-1%, 1%) scale(1.09); }
  to { opacity: 1; transform: none; }
}
@keyframes kong-dust { from { opacity: .8; transform: scale(.43, .35); } to { opacity: 0; transform: scale(1.65, 1); } }
@keyframes intro-blade { from { opacity: .45; transform: rotate(-720deg) scale(.8); } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes intro-grind { 0%, 100% { opacity: 0; scale: .38; } 30% { opacity: .95; } 85% { scale: 1.18; } }
@keyframes intro-welder { from { opacity: 0; transform: translateY(9%) scale(.94); } 24% { opacity: 1; } to { opacity: 1; transform: none; } }

/* Centro de servicio */
@media (max-width: 640px) {
  .top nav:has(.top-repair) { display: flex; margin-left: auto; }
  .top nav:has(.top-repair) a:not(.top-repair) { display: none; }
  .top:has(.top-repair) { gap: 10px; }
  .top:has(.top-repair) .top-quote { margin-left: 0; padding-inline: 10px; gap: 6px; }
  .top nav .top-repair { padding-inline: 0; font-size: .875rem; line-height: 1.1; }
  .top:has(.top-repair) .top-logo { display: grid; }
}
.repair-page {
  min-height: 100svh; padding: calc(var(--nav-h) + clamp(36px, 8vw, 112px)) var(--margin) 56px;
  background: radial-gradient(ellipse at 8% 20%, #60181055, transparent 55%);
}
.repair-layout {
  width: min(100%, 1080px); margin: 0 auto; display: grid; align-items: start;
  grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px);
}
.repair-kicker { margin: 0 0 12px; color: #ff8477; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.repair-page h1 { margin: 0; font: 800 clamp(3rem, 6vw, 6rem)/.93 var(--font-display); text-transform: uppercase; }
.repair-page section p:not(.repair-kicker) { max-width: 44ch; color: #d9dbde; }
.repair-address { font-size: .9rem; }
.repair-form { display: grid; padding: clamp(18px, 4vw, 32px); background: #17191d; border: 1px solid #35383e; }
.repair-form label { font-weight: 700; margin-bottom: 6px; }
.repair-form small, .repair-form p { color: #c1c4ca; font-weight: 400; }
.repair-form input, .repair-form textarea {
  width: 100%; min-height: 46px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid #585c64;
  background: var(--bg); color: var(--ink); font: inherit;
}
.repair-form textarea { resize: vertical; }
.repair-form p { margin: 10px 0 0; font-size: .875rem; }
.repair-form[hidden], .repair-fallback[hidden] { display: none; }
.repair-intro { --intro-color: #f77838; background: radial-gradient(ellipse at center, #401c13, var(--bg) 61%); }
.repair-intro span { align-self: end; margin-bottom: min(23vh, 190px); font-size: clamp(2rem, 8vw, 5rem); }
.repair-mechanism { position: absolute; width: min(60vw, 310px); aspect-ratio: 1; top: 43%; left: 50%; translate: -50% -50%; }
.repair-nut, .repair-wrench, .repair-sparks { position: absolute; display: block; }
.repair-nut {
  inset: 38%; background: conic-gradient(#ddd, #4b4e53, #aaa, #3a3d44, #ddd);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  mask-image: radial-gradient(circle, transparent 19%, #000 21%);
}
.repair-wrench {
  width: 74%; height: 29%; left: 40%; top: 36%; transform-origin: 14% 50%;
  background: linear-gradient(#b1b6bc, #5c6068 45%, #282b31 50%, #8c9199);
  clip-path: polygon(0 0, 21% 0, 34% 29%, 95% 36%, 100% 43%, 100% 57%, 95% 64%, 34% 71%, 21% 100%, 0 100%, 0 72%, 17% 72%, 22% 50%, 17% 28%, 0 28%);
}
.repair-sparks {
  inset: 3%; background: repeating-conic-gradient(transparent 0deg 24deg, #ffc488 25deg 26deg, transparent 27deg 39deg);
  mask-image: radial-gradient(circle, transparent 23%, #000 35%, transparent 64%);
}
@media (max-width: 760px) { .repair-layout { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .repair-intro { animation-delay: 1080ms; }
  .repair-intro span { animation-delay: 360ms; }
  .repair-nut { animation: repair-turn 720ms var(--ease-out) both; }
  .repair-wrench { animation: repair-tighten 720ms var(--ease-out) both; }
  .repair-sparks { animation: intro-electric 430ms ease-out 470ms both; }
}
@keyframes repair-turn {
  0% { opacity: 0; transform: scale(.6) rotate(-45deg); }
  35% { opacity: 1; transform: scale(1) rotate(-45deg); }
  to { opacity: 1; transform: rotate(40deg); }
}
@keyframes repair-tighten {
  0% { opacity: 0; transform: translate(50%, -30%) rotate(-48deg); }
  35% { opacity: 1; transform: rotate(-45deg); }
  to { opacity: 1; transform: rotate(40deg); }
}
