/* TuTallerYa 10.55 — footer vivo: beam diagonal + luz radial reactiva al cursor. */
.footer.footer--beam {
  --footer-spot-x: 50%;
  --footer-spot-y: 50%;
  border-top-color: transparent;
  background:
    radial-gradient(75% 92% at 14% 3%, rgba(21,93,253,.18), transparent 65%),
    radial-gradient(60% 85% at 87% 7%, rgba(21,93,253,.12), transparent 65%),
    linear-gradient(180deg, #071b38 0%, #07152b 43%, #030b19 100%);
  color: #eef4ff;
  isolation: isolate;
  overflow: clip;
}
[data-theme='light'] .footer.footer--beam {
  /* La referencia es un cierre de alto contraste, tanto en tema claro como oscuro. */
  background:
    radial-gradient(75% 92% at 14% 3%, rgba(21,93,253,.18), transparent 65%),
    radial-gradient(60% 85% at 87% 7%, rgba(21,93,253,.12), transparent 65%),
    linear-gradient(180deg, #071b38 0%, #07152b 43%, #030b19 100%);
}
.footer.footer--beam::before {
  background:
    repeating-linear-gradient(90deg, rgba(120,164,255,.036) 0 1px, transparent 1px 27px),
    repeating-linear-gradient(0deg, rgba(120,164,255,.016) 0 1px, transparent 1px 27px);
  opacity: .38;
}
.footer.footer--beam::after {
  z-index: 0;
  inset: -42% auto -33% 50%;
  width: clamp(130px,24vw,460px);
  height: 166%;
  transform: translate3d(-48%,0,0) rotate(21deg);
  transform-origin: 50% 50%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(21,93,253,.025) 12%,
    rgba(73,114,249,.15) 38%,
    rgba(93,135,255,.27) 50%,
    rgba(35,77,210,.13) 63%,
    transparent 100%);
  box-shadow: 0 0 90px rgba(21,93,253,.10);
  filter: blur(21px);
  opacity: .74;
  animation: tty-footer-beam-travel 12s ease-in-out infinite alternate;
}
@keyframes tty-footer-beam-travel {
  0% { transform: translate3d(-95%,0,0) rotate(21deg); opacity: .38; }
  43% { opacity: .78; }
  100% { transform: translate3d(65%,0,0) rotate(21deg); opacity: .62; }
}
.footer--beam .footer-top {
  position: relative;
  z-index: 4;
  grid-template-columns: 1.16fr .98fr .82fr;
  gap: clamp(28px,4vw,76px);
  padding-bottom: clamp(92px,10vw,126px);
}
.footer--beam .footer-top .brand {
  display: inline-flex;
  width: fit-content;
}
.footer--beam .footer-kicker,
.footer--beam .footer-heading {
  border-bottom: 1px solid rgba(82,131,242,.39);
  padding-bottom: 12px;
  color: #7ba8ff;
  font-size: .81rem;
  font-weight: 600;
  letter-spacing: .016em;
}
.footer--beam .footer-kicker { margin: 20px 0 0; }
.footer--beam .footer-heading { margin: 0 0 14px; }
.footer--beam .footer-social {
  border: 0;
  padding: 0;
  margin-top: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  overflow: visible;
}
.footer--beam .footer-social a {
  position: relative;
  min-height: 42px;
  width: 42px;
  padding: 0;
  flex: 0 0 42px;
  border-radius: 9px;
  border: 1px solid rgba(170,193,238,.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(233,241,255,.055);
  color: #b8c6e3;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  -webkit-tap-highlight-color: transparent;
  transition: color .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.footer--beam .footer-social a .icon {width:18px;height:18px;flex:0 0 18px;stroke-width:1.65;}
.footer--beam .footer-social a > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.footer--beam .footer-social a:is(:hover,:focus-visible) {
  border-color: rgba(94,147,255,.95);
  color: #fff;
  background: rgba(21,93,253,.35);
  box-shadow: 0 0 0 1px rgba(21,93,253,.14), 0 8px 26px rgba(21,93,253,.26), inset 0 1px 0 rgba(255,255,255,.10);
  transform: translateY(-2px);
}
.footer--beam .footer-social a::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  transform: translate(-50%,-5px);
  display: block;
  width: max-content;
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  background: #155dfd;
  font: 600 .76rem/1.15 var(--body, 'Inter', sans-serif);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
}
.footer--beam .footer-social a::before {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: calc(50% - 5px);
  z-index: 21;
  border: 5px solid transparent;
  border-top-width: 0;
  border-bottom-color: #155dfd;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.footer--beam .footer-social a:is(:hover,:focus-visible)::before,
.footer--beam .footer-social a:is(:hover,:focus-visible)::after {
  opacity: 1;
  visibility: visible;
}
.footer--beam .footer-social a:is(:hover,:focus-visible)::after {transform: translate(-50%,0);}
.footer--beam .footer-note {margin-top:18px;max-width:none;}
.footer--beam .company-info,
.footer--beam .footer-legal {padding-top: 20px;}
.footer--beam .company-info {gap: 7px;}
.footer--beam .company-info strong {color:#f7faff;}
.footer--beam .company-info span {color:#bac8e2;}
.footer--beam .footer-legal {gap:3px;}
.footer--beam .footer-legal a {
  position: relative;
  width: fit-content;
  min-height: 41px;
  padding: 6px 19px;
  color:#edf3ff;
  font-size:.9rem;
  font-weight:450;
  transition: color .2s ease;
}
.footer--beam .footer-legal a::before {
  content: "–";
  position: absolute;
  left: 0;
  top:50%;
  transform:translate(-6px,-50%);
  color:#6eabff;
  opacity:0;
  transition:transform .24s ease, opacity .24s ease;
}
.footer--beam .footer-legal a::after {
  content: "↗";
  position:absolute;
  right:0;
  top:50%;
  transform:translate(-3px,-38%);
  color:#7aaaff;
  opacity:0;
  font-size:1.05rem;
  transition:transform .24s ease,opacity .24s ease;
}
.footer--beam .footer-legal a:is(:hover,:focus-visible) {color:#fff;}
.footer--beam .footer-legal a:is(:hover,:focus-visible)::before {
  transform:translate(0,-50%);opacity:1;
}
.footer--beam .footer-legal a:is(:hover,:focus-visible)::after {
  transform:translate(6px,-55%);opacity:1;
}
.footer--beam .footer-legal a:focus-visible,
.footer--beam .footer-social a:focus-visible {outline:2px solid #90b5ff;outline-offset:4px;}

/* Wordmark en flujo normal: centrado y dimensionado según la pantalla.
   Las dos capas (base y spotlight) comparten exactamente la misma tipografía. */
.footer.footer--beam {padding-top:clamp(18px,2vw,26px)}
.footer--beam .footer-shell {
  display:flex;
  flex-direction:column;
  padding-bottom:clamp(4px,.65vw,9px);
}
.footer--beam .footer-top {
  padding-bottom:0;
  margin-bottom:clamp(8px,1vw,14px);
  gap:clamp(26px,3vw,56px);
  grid-template-columns:1.08fr 1fr .9fr;
}
.footer--beam .footer-kicker {margin-top:0}
.footer--beam .company-info,
.footer--beam .footer-legal {padding-top:0}
/* Una sola imagen SVG para llanta + nombre. La luz recorre el conjunto entero. */
.footer--beam .footer-signature {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(10px, 2.8vw, 38px) 8px;
  overflow: visible;
  isolation: isolate;
}
.footer--beam .footer-brand-unified {
  --tty-spot-x: 50%;
  --tty-spot-y: 50%;
  --tty-spot-radius: clamp(92px, 15vw, 250px);
  position: relative;
  display: block;
  flex: 0 1 920px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 610 / 115;
  /* Un único SVG vectorial contiene la llanta COMPLETA y el nombre. */
  background: url('/assets/footer-tutallerya-unificado.svg?v=10-64') center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
  pointer-events: none;
}
.footer--beam .footer-brand-unified::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle var(--tty-spot-radius) at var(--tty-spot-x) var(--tty-spot-y),
    rgba(209, 229, 255, .95) 0%, rgba(133, 181, 255, .82) 18%, rgba(21, 93, 253, .42) 46%, transparent 84%);
  -webkit-mask: url('/assets/footer-tutallerya-unificado.svg?v=10-64') center / contain no-repeat;
  mask: url('/assets/footer-tutallerya-unificado.svg?v=10-64') center / contain no-repeat;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.footer--beam[data-spotlight='on'] .footer-brand-unified::before { opacity: 1; }
.footer--beam .footer-pointer-aura {
  position:absolute;
  z-index:0;
  left:var(--tty-aura-x,50%);
  top:var(--tty-aura-y,75%);
  width:clamp(220px,29vw,470px);
  height:auto;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(21,93,253,.19) 0%,rgba(21,93,253,.085) 35%,transparent 68%);
  filter:blur(25px);
  transform:translate(-50%,-50%);
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}
.footer--beam[data-spotlight='on'] .footer-pointer-aura {opacity:.95}
.footer--beam .footer-bottom {display:none}
@media (max-width:1024px) {
  .footer--beam .footer-brand-unified {flex-basis:840px;}
  .footer--beam .footer-signature {padding-inline:clamp(12px,2vw,24px);}
  .footer--beam .footer-top {grid-template-columns:1fr 1fr;gap:26px;margin-bottom:24px}
  .footer--beam .footer-col--brand {grid-column:1/-1}
}
@media (max-width:700px) {
  .footer--beam .footer-brand-unified {flex-basis:100%;}
  .footer--beam .footer-signature {padding-inline:6px;padding-bottom:4px;}
  .footer.footer--beam {padding-top:30px}
  .footer--beam .footer-top {grid-template-columns:1fr;gap:18px;margin-bottom:18px}
  .footer--beam .footer-col--brand {grid-column:auto}
  .footer--beam .footer-social {gap:8px}
}
@media (prefers-reduced-motion:reduce) {
  .footer.footer--beam::after {animation:none;transform:translate(-48%,0) rotate(21deg);}
  .footer--beam .footer-brand-unified::before,
  .footer--beam .footer-pointer-aura,
  .footer--beam .footer-social a,
  .footer--beam .footer-social a::after,
  .footer--beam .footer-legal a::before,
  .footer--beam .footer-legal a::after {transition:none;}
}
