/* TallerMap · carrusel compacto de marcas en la portada (aislado). */
body.tm-fondo-azul .tm-marcas {
  position:relative;
  z-index:2;
  padding:13px 0 18px;
  background:transparent;
}
body.tm-fondo-azul .tm-marcas[hidden]{display:none!important}
.tm-marcas .tm-marcas-tira .tm-marcas-cargando{padding:8px 16px;color:#d7e8f8;font-size:.82rem}
.tm-marcas[aria-busy="true"] .tm-marcas-tira{animation:none;min-height:48px}
.tm-marcas .tm-marcas-marco{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgba(184,224,249,.31);
  border-radius:17px;
  background:
    radial-gradient(ellipse at 18% -40%,rgba(67,154,210,.17),transparent 62%),
    linear-gradient(175deg,rgba(21,35,54,.91),rgba(7,16,30,.94));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 12px 30px rgba(0,0,0,.28);
  padding:9px 0 8px;
}
.tm-marcas .tm-marcas-marco::before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:linear-gradient(90deg,transparent,rgba(152,223,255,.09) 19%,transparent 42%,rgba(252,205,133,.05) 71%,transparent),
  linear-gradient(180deg,rgba(255,255,255,.07),transparent 35%,rgba(255,255,255,.025));
}
.tm-marcas .tm-marca-boton:focus-visible{outline:3px solid #ffc07b;outline-offset:3px}
.tm-marcas .tm-marcas-ventana{
  overflow:hidden;width:100%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
}
.tm-marcas .tm-marcas-tira{
  display:flex;align-items:center;width:max-content;
  animation:none;
}
.tm-marcas.tm-marcas-listo .tm-marcas-tira{
  animation:tm-marcas-desplazar 240s linear infinite;
  animation-delay:var(--tm-marcas-inicio,0s);
  will-change:transform;
}
/* Hasta que se habilite la animacion: banda visible y desplazable en cualquier navegador. */
.tm-marcas:not(.tm-marcas-listo) .tm-marcas-ventana{
  overflow-x:auto;
  -webkit-mask-image:none;mask-image:none;
}

.tm-marcas .tm-marcas-bloque{display:flex;align-items:center;flex:none;gap:7px;padding-right:7px}
.tm-marcas .tm-marca-item{width:49px;flex:none;margin:0;position:relative;text-align:center}
.tm-marcas .tm-marca-boton{
  appearance:none;border:0;background:transparent;color:inherit;
  display:grid;place-items:center;width:100%;min-height:48px;padding:0;
  cursor:zoom-in;border-radius:12px;touch-action:manipulation;
}
/* Emblemas sin tarjetas blancas: se respetan las transparencias de SVG/PNG. */
.tm-marcas .tm-marca-sello{
  position:relative;display:grid;place-items:center;overflow:visible;
  width:40px;height:40px;padding:2px;
  border:0;border-radius:0;background:transparent;box-shadow:none;
  transition:transform .22s ease;
}
.tm-marcas .tm-marca-sello img{
  display:block;position:relative;width:100%;height:100%;object-fit:contain;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
.tm-marcas .tm-marca-boton:hover .tm-marca-sello,
.tm-marcas .tm-marca-boton:focus-visible .tm-marca-sello{
  transform:scale(1.12);
}
.tm-marcas .tm-marca-boton:hover .tm-marca-sello img,
.tm-marcas .tm-marca-boton:focus-visible .tm-marca-sello img{
  filter:drop-shadow(0 0 7px rgba(126,214,255,.75));
}
.tm-marcas .tm-marca-item figcaption{
  position:absolute!important;width:1px!important;height:1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;margin:-1px!important;padding:0!important;border:0!important;
}
@keyframes tm-marcas-desplazar{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.tm-marcas.tm-marcas-ampliando .tm-marcas-tira{animation-play-state:paused}

/* Modal en body para que ninguna capa de la portada tape la insignia ampliada. */
.tm-logo-overlay{
  position:fixed;inset:0;z-index:2147483647;
  display:grid;place-items:center;padding:24px;
  background:rgba(2,8,19,.84);
  -webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .36s ease,visibility 0s linear .36s;
}
.tm-logo-overlay.abierto{
  opacity:1;visibility:visible;pointer-events:auto;
  transition:opacity .36s ease,visibility 0s linear 0s;
}
.tm-logo-panel{
  display:flex;align-items:center;flex-direction:column;gap:14px;
  width:min(92vw,520px);text-align:center;
  opacity:0;transform:translateY(22px) scale(.83);
  transition:opacity .3s ease,transform .43s cubic-bezier(.16,1,.3,1);
}
.tm-logo-overlay.abierto .tm-logo-panel{opacity:1;transform:translateY(0) scale(1)}
.tm-logo-ampliado{
  display:grid;place-items:center;cursor:zoom-out;
  width:min(78vw,420px);height:min(58vh,370px);min-height:180px;
  padding:clamp(12px,3vw,24px);border:0;
  border-radius:0;background:transparent;box-shadow:none;
}
.tm-logo-ampliado img{
  display:block;width:100%;height:100%;object-fit:contain;
  filter:drop-shadow(0 14px 23px rgba(0,0,0,.6));
}
.tm-logo-ampliado:focus-visible{outline:4px solid #ffc16a;outline-offset:5px}
.tm-logo-nombre{color:#fff;font-size:clamp(1.4rem,4vw,2rem);font-weight:850}
.tm-logo-instruccion{margin:0;color:#d5e5f1;font-size:.93rem}
@media(max-width:600px){
  body.tm-fondo-azul .tm-marcas{padding:10px 0 14px}
  .tm-marcas .tm-marcas-marco{padding:7px 0;border-radius:14px}
  .tm-marcas .tm-marcas-bloque{gap:5px;padding-right:5px}
  .tm-marcas .tm-marcas-tira{animation-duration:210s}
  .tm-marcas .tm-marca-item{width:44px}
  .tm-marcas .tm-marca-boton{min-height:44px}
  .tm-marcas .tm-marca-sello{width:34px;height:34px;padding:1px}
}
@media(prefers-reduced-motion:reduce){
  .tm-marcas .tm-marcas-tira{animation:none!important;transform:none!important}
  .tm-marcas .tm-marcas-ventana{
    overflow-x:auto;-webkit-mask-image:none;mask-image:none;
    scrollbar-color:#7099b4 #112236;
  }
  .tm-marcas .tm-marcas-duplicado{display:none!important}
  .tm-logo-overlay,.tm-logo-panel,.tm-marca-sello{transition:none!important}
}

/* Un mismo espacio para todas las insignias, sin deformarlas. */
.tm-marcas .tm-marca-item{width:56px}
.tm-marcas .tm-marca-sello{width:40px;height:40px;padding:0;box-sizing:border-box}
.tm-marcas .tm-marca-sello img{width:40px;height:40px;max-width:none;max-height:none;object-fit:contain;object-position:center}
.tm-marcas.tm-marcas-listo .tm-marcas-tira{animation-duration:70s}
@media(max-width:600px){.tm-marcas .tm-marca-item{width:50px}.tm-marcas .tm-marca-sello,.tm-marcas .tm-marca-sello img{width:36px;height:36px}}

/* Insignias sobre pequeños soportes de cristal oscuro. */
.tm-marcas .tm-marcas-marco{border-radius:18px;background:linear-gradient(135deg,rgba(16,39,65,.96),rgba(4,13,27,.96));border-color:rgba(137,208,255,.36);padding:12px 0;box-shadow:inset 0 1px 0 #ffffff24,0 10px 30px #00000045}
.tm-marcas .tm-marcas-bloque{gap:12px;padding-right:12px}
.tm-marcas .tm-marca-item{width:62px}
.tm-marcas .tm-marca-boton{min-height:60px}
.tm-marcas .tm-marca-sello{width:54px;height:54px;padding:7px;overflow:hidden;border-radius:14px;border:1px solid rgba(161,211,247,.3);background:radial-gradient(ellipse at 30% 0%,rgba(158,211,255,.22),transparent 65%),linear-gradient(150deg,#253c54,#0b1828);box-shadow:inset 0 1px 0 #ffffff30,inset 0 -1px 0 #00000050,0 4px 9px #00000040;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.tm-marcas .tm-marca-sello img{width:38px;height:38px;filter:drop-shadow(0 2px 3px #00000080)}
.tm-marcas .tm-marca-boton:hover .tm-marca-sello,.tm-marcas .tm-marca-boton:focus-visible .tm-marca-sello{transform:translateY(-2px);border-color:#a1d8ff;box-shadow:inset 0 1px 0 #ffffff40,0 0 12px #53b9ff40}
@media(max-width:600px){.tm-marcas .tm-marcas-marco{padding:9px 0}.tm-marcas .tm-marcas-bloque{gap:9px;padding-right:9px}.tm-marcas .tm-marca-item{width:54px}.tm-marcas .tm-marca-boton{min-height:52px}.tm-marcas .tm-marca-sello{width:48px;height:48px;padding:6px;border-radius:12px}.tm-marcas .tm-marca-sello img{width:34px;height:34px}}

/* Relieve 3D: bisel, reflejo y profundidad sin alterar los logotipos. */
.tm-marcas .tm-marca-boton{perspective:420px;overflow:visible}
.tm-marcas .tm-marca-sello{
isolation:isolate;overflow:visible;transform:rotateX(8deg) rotateY(-7deg);
border:1px solid #8ab2ce;
background:radial-gradient(ellipse at 25% 5%,#8ebbd14d,transparent 60%),linear-gradient(145deg,#314b65 0%,#15283d 48%,#07111f 100%);
box-shadow:inset 1px 2px 2px #e5f5ff70,inset -2px -2px 3px #000000a0,1px 3px 0 #071322,2px 5px 0 #030a13,4px 9px 10px #00000080;
transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.tm-marcas .tm-marca-sello::before{
content:"";position:absolute;inset:3px;z-index:0;pointer-events:none;border-radius:10px;
background:linear-gradient(135deg,#ffffff24,transparent 43%,#a4dfff08 65%,transparent);
border-top:1px solid #ffffff38;
}
.tm-marcas .tm-marca-sello img{
z-index:1;transform:translateZ(6px);
filter:drop-shadow(1px 2px 0 #00000060) drop-shadow(0 4px 3px #00000080);
}
.tm-marcas .tm-marca-boton:hover .tm-marca-sello,
.tm-marcas .tm-marca-boton:focus-visible .tm-marca-sello{
transform:rotateX(0deg) rotateY(0deg) translateY(-3px);
border-color:#bde5ff;
box-shadow:inset 1px 2px 2px #e5f5ff80,inset -2px -2px 3px #000000a0,1px 3px 0 #071322,2px 5px 0 #030a13,4px 11px 14px #00000090,0 0 12px #57bfff30;
}
@media(prefers-reduced-motion:reduce){.tm-marcas .tm-marca-sello,.tm-marcas .tm-marca-boton:hover .tm-marca-sello{transform:none;transition:none}}

/* Destello progresivo al cruzar el centro del carrusel. */
.tm-marcas .tm-marca-sello::after{
content:"";position:absolute;inset:-3px;pointer-events:none;border-radius:inherit;
opacity:var(--tm-luz-centro,0);z-index:2;
background:radial-gradient(ellipse at 38% 8%,rgba(232,249,255,.45),rgba(103,200,255,.12) 40%,transparent 70%);
border:1px solid rgba(196,236,255,.9);
box-shadow:0 0 9px rgba(123,214,255,.65),0 0 18px rgba(67,167,255,.3),inset 0 1px 2px rgba(255,255,255,.8);
}

/* Más contraste para logotipos monocromos oscuros. */
.tm-marcas .tm-marca-boton:is([aria-label="Ampliar insignia de Mazda"],[aria-label="Ampliar insignia de MINI"],[aria-label="Ampliar insignia de Cupra"],[aria-label="Ampliar insignia de Tesla"],[aria-label="Ampliar insignia de Honda"],[aria-label="Ampliar insignia de Suzuki"],[aria-label="Ampliar insignia de Lexus"],[aria-label="Ampliar insignia de Kia"],[aria-label="Ampliar insignia de Nissan"]) .tm-marca-sello{
background:radial-gradient(ellipse at 30% 0%,#ffffff,transparent 75%),linear-gradient(145deg,#e5edf5,#a8bdd0);
border-color:#e2f1ff;
}

/* Fondo de insignias totalmente transparente, sin placas ni biseles. */
body.tm-fondo-azul .tm-marcas .tm-marca-boton .tm-marca-sello,
body.tm-fondo-azul .tm-marcas .tm-marca-boton:hover .tm-marca-sello,
body.tm-fondo-azul .tm-marcas .tm-marca-boton:focus-visible .tm-marca-sello{
background:transparent!important;border:0!important;box-shadow:none!important;
}
body.tm-fondo-azul .tm-marcas .tm-marca-sello::before{display:none!important}
body.tm-fondo-azul .tm-marcas .tm-marca-sello::after{background:transparent!important;border:0!important;box-shadow:none!important}

/* La luz central actúa sobre el logotipo, sin rellenar su fondo. */
body.tm-fondo-azul .tm-marcas .tm-marca-sello img{
filter:brightness(calc(1 + var(--tm-luz-centro,0) * .45)) drop-shadow(0 2px 3px #00000080) drop-shadow(0 0 4px rgba(174,227,255,var(--tm-luz-centro,0)))!important;
}

/* Borde visible con interior completamente transparente. */
body.tm-fondo-azul .tm-marcas .tm-marca-boton .tm-marca-sello{
background:transparent!important;border:1px solid rgba(172,218,249,.72)!important;
box-shadow:0 2px 3px rgba(0,0,0,.35)!important;
}
body.tm-fondo-azul .tm-marcas .tm-marca-boton:hover .tm-marca-sello,
body.tm-fondo-azul .tm-marcas .tm-marca-boton:focus-visible .tm-marca-sello{
background:transparent!important;border:1px solid #d6f0ff!important;
box-shadow:0 0 8px rgba(124,214,255,.4)!important;
}
body.tm-fondo-azul .tm-marcas .tm-marca-sello::after{
background:transparent!important;border:1px solid rgba(217,244,255,.95)!important;
box-shadow:0 0 9px rgba(123,214,255,.65)!important;
}

/* Ampliación legible sobre una superficie oscura uniforme. */
.tm-logo-overlay{background:rgba(2,7,15,.97)!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.tm-logo-ampliado img{filter:brightness(1.45) contrast(1.2) drop-shadow(0 0 2px rgba(237,249,255,.7)) drop-shadow(0 6px 16px #000)!important}
.tm-logo-nombre{color:#fff!important;text-shadow:0 2px 4px #000}

/* Luz central intensa; desaparece al alejarse del centro. */
body.tm-fondo-azul .tm-marcas .tm-marca-sello img{
filter:brightness(calc(1 + var(--tm-luz-centro,0) * 1.35))
drop-shadow(0 2px 3px #00000080)
drop-shadow(0 0 3px rgba(240,252,255,var(--tm-luz-centro,0)))
drop-shadow(0 0 9px rgba(117,222,255,var(--tm-luz-centro,0)))
drop-shadow(0 0 16px rgba(55,166,255,var(--tm-luz-centro,0)))!important;
}
body.tm-fondo-azul .tm-marcas .tm-marca-sello::after{
background:transparent!important;border:2px solid #e9fbff!important;
box-shadow:0 0 5px #fff,0 0 13px #7bdfff,0 0 24px #389eff,inset 0 0 5px #aeefff!important;
}

/* Reflejo de espejo ligado a la luz del centro, con desvanecimiento. */
body.tm-fondo-azul .tm-marcas .tm-marca-sello{
-webkit-box-reflect:below 4px linear-gradient(to bottom,transparent 45%,rgba(255,255,255,calc(var(--tm-luz-centro,0) * .65)) 100%);
}
body.tm-fondo-azul .tm-marcas .tm-marcas-marco{padding-bottom:32px}
@media(max-width:600px){body.tm-fondo-azul .tm-marcas .tm-marcas-marco{padding-bottom:28px}}

/* Reservar el espacio del reflejo dentro de la ventana del carrusel. */
body.tm-fondo-azul .tm-marcas .tm-marcas-ventana{padding-bottom:24px}
body.tm-fondo-azul .tm-marcas .tm-marcas-marco{padding-bottom:8px}
@media(max-width:600px){body.tm-fondo-azul .tm-marcas .tm-marcas-ventana{padding-bottom:20px}}

/* Reducir un 25 % la iluminación central sin alterar el reflejo. */
body.tm-fondo-azul .tm-marcas .tm-marca-sello img{
filter:brightness(calc(1 + var(--tm-luz-centro,0) * 1.0125))
drop-shadow(0 2px 3px #00000080)
drop-shadow(0 0 3px rgba(240,252,255,calc(var(--tm-luz-centro,0) * .75)))
drop-shadow(0 0 9px rgba(117,222,255,calc(var(--tm-luz-centro,0) * .75)))
drop-shadow(0 0 16px rgba(55,166,255,calc(var(--tm-luz-centro,0) * .75)))!important;
}
body.tm-fondo-azul .tm-marcas .tm-marca-sello::after{
opacity:calc(var(--tm-luz-centro,0) * .75);
}

/* Peugeot blanco puro, conservando la transparencia del archivo. */
body.tm-fondo-azul .tm-marcas .tm-marca-boton[aria-label="Ampliar insignia de Peugeot"] .tm-marca-sello img{
filter:brightness(0) invert(1)
drop-shadow(0 2px 3px #00000080)
drop-shadow(0 0 9px rgba(117,222,255,calc(var(--tm-luz-centro,0) * .75)))!important;
}
.tm-logo-ampliado img[alt="Insignia de Peugeot"]{
filter:brightness(0) invert(1) drop-shadow(0 3px 8px #00000080)!important;
}

/* Nombre visible solo cerca del centro, sincronizado con la luz. */
body.tm-fondo-azul .tm-marcas .tm-marca-item figcaption{
position:absolute!important;top:100%!important;left:50%!important;
width:100px!important;height:auto!important;clip:auto!important;
overflow:visible!important;margin:4px 0 0!important;padding:0!important;
transform:translateX(-50%);font-size:11px;line-height:16px;font-weight:700;
color:#fff;text-align:center;text-shadow:0 1px 4px #000;
opacity:var(--tm-luz-centro,0);pointer-events:none;
}
body.tm-fondo-azul .tm-marcas .tm-marcas-ventana{padding-bottom:34px}
@media(max-width:600px){body.tm-fondo-azul .tm-marcas .tm-marcas-ventana{padding-bottom:30px}}
