/* Talleres JJM. Diseño web: PM. Concepto "El rótulo": bloques planos de su azul, carbón y naranja. */
:root {
  --azul: #449DBE;
  --carbon: #3C3C3C;
  --naranja: #D76E08;
  --naranja-claro: #FF9C3A;
  --naranja-oscuro: #974D04;
  --azul-hondo: #1F6F8F;
  --hielo: #E8F3F8;
  --hielo-linea: #C9DEE8;
  --tinta: #1E2225;
  --blanco: #FFFFFF;
  --cab: 75px;
  --lado: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --foco: var(--azul-hondo);
}
@media (min-width: 700px) { :root { --lado: 40px; } }
@media (min-width: 1100px) { :root { --lado: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--carbon); color: var(--tinta);
  font: 400 1.0625rem/1.65 'Encode Sans', 'Segoe UI', Verdana, sans-serif;
  font-stretch: 100%; font-synthesis: none; -webkit-font-smoothing: antialiased;
}
@media (min-width: 700px) { body { font-size: 1.125rem; } }
h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--naranja); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 4px; }
.azul, .naranja { --foco: var(--tinta); }
.carbon { --foco: var(--naranja-claro); }
[id] { scroll-margin-top: calc(var(--cab) + 16px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.salto { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--tinta); color: var(--blanco); padding: 12px 18px; border-radius: 8px; font-weight: 600; }
.salto:focus { top: 12px; outline-color: var(--naranja-claro); }

.wrap { max-width: calc(1200px + 2 * var(--lado)); margin-inline: auto; padding-inline: var(--lado); }
section { padding-block: 56px; }
@media (min-width: 900px) { section { padding-block: 96px; } }
.azul { background: var(--azul); }
.carbon { background: var(--carbon); color: var(--blanco); }
.hielo { background: var(--hielo); }
.naranja { background: var(--naranja); }

/* Tipo: una sola familia. Ancho 125 = rótulo, ancho 100 = lectura. */
h1, h2, h3, .cifra, .telefonazo, .marca, .destacado, .rev-frase, .pie-nombre, .banda-1 { font-stretch: 125%; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.15; }
.cifra { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; font-variant-numeric: tabular-nums; display: block; }
.prosa p { max-width: 68ch; }
.prosa p + p { margin-top: 1.1em; }
.menor { font-size: .9375rem; }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dib { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; height: 120px; width: auto; }
.dib .tapa { fill: var(--suelo); }

/* Un solo botón */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 2px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 1.0625rem; line-height: 1.1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}
.btn-carbon { background: var(--carbon); color: var(--blanco); }
.btn-naranja { background: var(--naranja); color: var(--tinta); }
.btn-linea { background: transparent; border-color: currentColor; color: inherit; }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(.97); }
  .btn-carbon:hover { background: var(--tinta); }
  .btn-naranja:hover { background: var(--naranja-claro); }
}
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Placa: dato real sobre blanco con canto oscuro. La única sombra del sitio. */
.placa {
  background: var(--blanco); color: var(--tinta); border: 3px solid var(--carbon); border-radius: 10px;
  padding: 20px 24px; box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .placa:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, .18); }
}
.placa .ico { color: var(--azul-hondo); }
/* enlaces de dato: 44 px de alto para el dedo, subrayado pegado al texto */
.placa a, .pie a, .correo { display: inline-block; padding-block: 10px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 2px no-repeat; }
.placa address br + a, .pie address br + a { margin-top: -6px; }
.correo { overflow-wrap: anywhere; }

.panel { --suelo: var(--azul); background: var(--suelo); border-radius: 10px; padding: 28px; }
.p-carbon { --suelo: var(--carbon); color: var(--blanco); --foco: var(--naranja-claro); }
.p-naranja { --suelo: var(--naranja); }
.p-azul h3, .p-azul .dib, .p-azul .rev-frase { color: var(--blanco); }
.panel .rev-frase { font-weight: 800; margin-top: 0; }
.dib .pulso { stroke: var(--naranja-claro); }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 100; background: var(--blanco); border-bottom: 3px solid var(--azul); }
.cabecera-in { height: 72px; max-width: 1392px; margin-inline: auto; padding-inline: var(--lado); display: flex; align-items: center; gap: 20px; }
.marca { background: var(--azul); color: var(--blanco); height: 44px; padding: 0 14px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 22px; line-height: 1; text-decoration: none; white-space: nowrap; letter-spacing: .01em; --foco: var(--tinta); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { position: relative; padding: 12px 10px; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; background: var(--naranja); transform: scaleX(0); transform-origin: left; transition: transform 220ms ease-out; }
.nav a[aria-current]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.cabecera-tel { display: none; }
.menu-btn { margin-left: auto; min-height: 44px; color: var(--tinta); }
@media (min-width: 1240px) {
  .nav { display: flex; }
  .cabecera-tel { display: inline-flex; min-height: 44px; }
  .menu-btn { display: none; }
}

.menu { position: fixed; inset: var(--cab) 0 0 0; z-index: 90; background: var(--azul); --foco: var(--tinta); padding: 32px var(--lado) 96px; overflow: auto; display: flex; flex-direction: column; gap: 28px; opacity: 0; transition: opacity 200ms ease-out; }
.menu[hidden] { display: none; }
.menu.abierto { opacity: 1; }
.menu nav { display: grid; }
.menu nav a { color: var(--blanco); font-size: 1.75rem; font-weight: 700; line-height: 1.2; text-decoration: none; padding: 12px 0; opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.menu.abierto nav a { opacity: 1; transform: none; }
.menu.abierto nav a:nth-child(2) { transition-delay: 40ms; }
.menu.abierto nav a:nth-child(3) { transition-delay: 80ms; }
.menu.abierto nav a:nth-child(4) { transition-delay: 120ms; }
.menu.abierto nav a:nth-child(5) { transition-delay: 160ms; }
.menu .btn { align-self: flex-start; }
.menu-abierto { overflow: hidden; }

/* A. Hero */
.hero { padding-block: 40px 48px; display: grid; align-items: center; min-height: 0; }
.hero-in { display: grid; gap: 28px; width: 100%; }
.hero-sello { order: -1; }
.sello { width: 100%; height: auto; overflow: visible; }
.sello-hero { width: 200px; margin-inline: auto; }
h1 { color: var(--blanco); }
.h1-nombre { display: block; text-transform: uppercase; letter-spacing: .02em; line-height: .98; font-size: clamp(1.75rem, 9.6vw, 4.75rem); white-space: nowrap; }
.h1-lema { display: block; font-stretch: 100%; font-weight: 700; font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.2; margin-top: .55em; text-wrap: balance; }
.hero-sub { color: var(--blanco); font-weight: 700; font-size: 1.25rem; line-height: 1.4; margin-top: 16px; max-width: 34ch; }
.hero .acciones { margin-top: 28px; }
/* blanco sobre azul solo pasa como texto grande: 19 px en negrita */
.hero .btn { font-size: 1.1875rem; font-weight: 700; }
.hero .btn-linea { color: var(--blanco); }
@media (max-width: 599px) { .hero .btn, .contacto .btn { width: 100%; } }
@media (min-width: 900px) {
  .hero { min-height: clamp(600px, calc(100svh - var(--cab) - 150px), 780px); padding-block: 56px; }
  .hero-in { grid-template-columns: 7fr 5fr; gap: 24px; align-items: center; }
  .hero-sello { order: 0; }
  .sello-hero { width: min(380px, 100%); margin-right: 0; }
  .h1-nombre { font-size: clamp(2.5rem, 5.8vw, 5.4rem); }
}

/* B. Banda */
.banda { padding-block: 36px; }
.banda-in { display: grid; gap: 24px; align-items: center; }
.banda-1 { font-weight: 700; font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.18; text-wrap: balance; }
.banda-2 { color: var(--naranja-claro); font-weight: 600; font-size: 1.125rem; line-height: 1.4; margin-top: 10px; }
.placa-horario { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; line-height: 1.35; }
.placa-horario .ico { width: 32px; height: 32px; margin-top: 2px; }
.placa-horario .cifra { margin-block: 2px; }
@media (min-width: 900px) { .banda-in { grid-template-columns: 8fr 4fr; } }

/* C. El taller */
.taller h2 { max-width: 22em; }
.paneles { display: grid; gap: 24px; margin-top: 40px; }
.panel h3 { font-size: 1.75rem; margin-top: 22px; }
.panel p { margin-top: 10px; font-weight: 500; }
.frases { display: grid; gap: 24px; margin-top: 32px; }
.frases .placa { display: grid; gap: 12px; align-content: start; font-weight: 500; line-height: 1.5; }
.frases .ico { width: 32px; height: 32px; }
@media (min-width: 700px) { .frases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .paneles { grid-template-columns: repeat(3, 1fr); margin-top: 56px; } }
@media (min-width: 1100px) { .frases { grid-template-columns: 1.62fr 1fr 1fr 1.16fr; } .frases .placa { font-size: 1.0625rem; } }

/* D. El tablero */
.tablero { background: var(--blanco); border: 3px solid var(--carbon); border-radius: 10px; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); overflow: hidden; }
.tablero-cab { background: var(--naranja); color: var(--tinta); padding: 22px 28px; border-bottom: 3px solid var(--carbon); }
.tablero-filas li { display: flex; align-items: center; gap: 18px; min-height: 76px; padding: 12px 28px; font-weight: 500; font-size: 1.125rem; line-height: 1.3; border-bottom: 1px solid var(--hielo-linea); transition: background-color 180ms ease-out; }
.tablero-filas .ico { width: 32px; height: 32px; color: var(--azul-hondo); transition: color 180ms ease-out; }
.tablero-pie { background: var(--carbon); color: var(--blanco); font-weight: 600; font-size: 1.125rem; padding: 16px 28px; letter-spacing: .01em; }
@media (hover: hover) and (pointer: fine) {
  .tablero-filas li:hover { background: var(--hielo); }
  .tablero-filas li:hover .ico { color: var(--naranja-oscuro); }
}
@media (min-width: 800px) {
  .tablero-filas { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; }
  .tablero-filas li { font-size: 1.25rem; }
  .tablero-filas li:nth-child(-n+4) { border-right: 1px solid var(--hielo-linea); }
  .tablero-filas li:nth-child(4n) { border-bottom: 0; }
}
@media (max-width: 799px) { .tablero-filas li:last-child { border-bottom: 0; } }

/* E. Mecánica y electricidad */
.mecanica-in { display: grid; gap: 32px; }
.sublinea { color: var(--naranja-claro); font-weight: 600; font-size: 1.125rem; margin-top: 14px; }
.circuito { margin-top: 28px; height: 240px; width: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.c-linea { stroke: var(--azul); stroke-width: 5; }
.c-pieza { stroke: var(--azul); stroke-width: 4; fill: var(--carbon); }
.c-nodos { fill: var(--naranja); }
.c-nodos circle { transform-box: fill-box; transform-origin: center; }
.c-rayos { stroke: var(--naranja-claro); stroke-width: 4; }
@media (min-width: 600px) { .circuito { height: 320px; } }
.destacado { display: block; font-size: 1.5rem; line-height: 1.2; font-weight: 700; margin-bottom: .5em; }
@media (min-width: 900px) {
  .mecanica-in { grid-template-columns: 5fr 7fr; gap: 24px 56px; align-items: start; }
  .mecanica-izq { position: sticky; top: calc(var(--cab) + 32px); }
  .circuito { height: auto; width: 100%; max-width: 440px; margin-top: 36px; }
  .mecanica-der { padding-top: 8px; }
}

/* F. Revisiones */
.rev-1 { display: grid; gap: 32px; }
.revisiones h2 { margin-bottom: 24px; }
.rev-panel { display: grid; align-content: space-between; gap: 24px; }
.rev-panel .dib { height: 200px; }
.rev-frase { font-size: clamp(1.5rem, 2.4vw, 1.75rem); line-height: 1.15; text-wrap: balance; }
.rev-entrada { margin-top: 40px; max-width: 76ch; }
.hoja { margin-top: 32px; padding: 0; display: grid; overflow: hidden; }
.hoja:hover { transform: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.hoja li { padding: 26px 28px 28px; border-bottom: 1px solid var(--hielo-linea); }
.hoja li:last-child { border-bottom: 0; }
.hoja-cab { display: flex; align-items: center; gap: 12px; }
.hoja-cab .ico { width: 40px; height: 40px; }
.casilla { width: 28px; height: 28px; border: 3px solid var(--carbon); border-radius: 4px; margin-right: 6px; flex: none; }
.casilla svg { width: 100%; height: 100%; fill: none; stroke: var(--naranja-oscuro); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.hoja h3 { font-size: 1.25rem; font-weight: 700; margin-top: 16px; }
.hoja p { margin-top: 8px; font-size: 1.0625rem; line-height: 1.6; }
@media (min-width: 900px) {
  .rev-1 { grid-template-columns: 7fr 5fr; gap: 56px; align-items: stretch; }
  .rev-panel { padding: 36px; }
  .rev-panel .dib { height: auto; width: 100%; max-height: 300px; }
  .hoja { grid-template-columns: 1fr 1fr; }
  .hoja li:nth-child(odd) { border-right: 1px solid var(--hielo-linea); }
  .hoja li:nth-child(n+3) { border-bottom: 0; }
}

/* G. ¿Dónde estamos? */
.donde h2 { color: var(--blanco); }
.donde-in { display: grid; gap: 24px; margin-top: 32px; }
.donde-col { display: contents; }
.marco { order: 1; padding: 10px; overflow: hidden; max-width: 516px; }
.dato { order: 2; max-width: 516px; }
.d-contacto { order: 3; }
.d-horario { order: 4; }
.mapa { order: 5; }
.d-ir { order: 6; }
.marco picture { display: block; border-radius: 4px; overflow: hidden; }
.marco img { width: 100%; height: auto; transition: transform 300ms ease-out; }
@media (hover: hover) and (pointer: fine) { .marco:hover img { transform: scale(1.03); } }
.dato, .d-horario { display: flex; align-items: center; gap: 14px; }
.d-horario { align-items: flex-start; }
.dato .ico, .d-horario .ico { width: 32px; height: 32px; }
.d-horario .ico { margin-top: 2px; }
.dato .cifra { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.donde .placa h3 { font-size: 1.25rem; margin-bottom: 8px; }
.donde .placa p + p { margin-top: 4px; }
.donde .placa { font-weight: 500; line-height: 1.6; }
.mapa { position: relative; height: 340px; border: 3px solid var(--carbon); border-radius: 10px; overflow: hidden; background: var(--carbon); color: var(--blanco); --foco: var(--naranja-claro); }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa-reserva { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.mapa-reserva > .ico { width: 56px; height: 56px; color: var(--naranja-claro); }
.mapa-reserva p { font-stretch: 125%; font-weight: 700; font-size: 1.375rem; line-height: 1.25; }
@media (max-width: 599px) { .d-ir .btn { width: 100%; } }
@media (min-width: 1000px) {
  .donde-in { grid-template-columns: minmax(0, 516px) minmax(0, 1fr); gap: 40px; margin-top: 48px; align-items: stretch; }
  .donde-col { display: grid; gap: 24px; align-content: start; }
  .donde-col + .donde-col { grid-template-rows: auto minmax(340px, 1fr); align-content: stretch; }
  .mapa { height: auto; }
}

/* H. Contacto: el número es el momento tipográfico */
.contacto { position: relative; overflow: hidden; padding-bottom: 0; }
.contacto-in { position: relative; z-index: 1; }
.telefonazo { display: inline-block; min-height: 44px; padding-block: .08em; font-size: clamp(2rem, 11vw, 6.5rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-decoration: none; margin-top: 20px; white-space: nowrap; }
.correo-grande { padding-block: 12px; font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.5rem); margin-top: 8px; line-height: 1.3; }
.contacto .acciones { margin-top: 32px; }
.gracias { margin-top: 28px; font-weight: 600; font-size: 1.125rem; }
.aro-caja { position: relative; height: 180px; margin-top: 16px; }
.aro { position: absolute; right: -90px; top: -8px; width: 300px; height: 300px; overflow: visible; }
.aro-giro { transform-box: fill-box; transform-origin: center; }
@media (min-width: 900px) {
  .contacto { padding-bottom: 96px; min-height: 420px; }
  .telefonazo { font-size: clamp(3.5rem, 7vw, 6.5rem); }
  .contacto-texto { max-width: 66.666%; }
  .aro-caja { position: absolute; inset: 0; height: auto; margin: 0; }
  .aro { width: 520px; height: 520px; right: -150px; top: auto; bottom: -160px; }
}

/* I. Pie */
.pie { padding-block: 64px 28px; }
.pie-in { display: grid; gap: 36px; }
.pie-marca { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); }
.sello-pie { width: clamp(110px, 30vw, 200px); flex: none; }
.pie-nombre { display: block; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.625rem, 6.4vw, 3rem); line-height: 1; }
.pie-nombre span { display: block; }
.pie-lema { display: block; color: var(--naranja-claro); font-weight: 600; margin-top: 10px; line-height: 1.3; }
.pie-col h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 10px; color: var(--naranja-claro); }
.pie-col, .pie-nav { font-size: 1rem; line-height: 1.7; }
.pie a { background-size: 0 2px; transition: background-size 220ms ease-out; }
.pie-col li { margin-top: -6px; }
@media (hover: hover) and (pointer: fine) { .pie a:hover { background-size: 100% 2px; } }
.pie-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .28); font-weight: 600; }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; margin-top: 14px; font-size: .9375rem; }
@media (min-width: 700px) { .pie-in { grid-template-columns: repeat(3, 1fr); } .pie-marca { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .pie-in { grid-template-columns: 470fr 280fr 178fr 200fr; gap: 24px; align-items: start; }
  .pie-marca { grid-column: auto; }
  .sello-pie { width: 200px; }
  .pie-nombre { font-size: 2.375rem; }
  .pie-col, .pie-nav { font-size: .9375rem; }
}
/* el sello PM es fijo abajo a la izquierda: la línea legal le deja sitio donde el margen es estrecho */
@media (min-width: 901px) and (max-width: 1099px) { .pie-legal { padding-left: 52px; } }
@media (min-width: 1100px) and (max-width: 1420px) { .pie-legal { padding-left: 28px; } }
@media (max-width: 900px) { body { padding-bottom: 56px; } .pie-legal { padding-right: 64px; } }

/* Barra fija en móvil */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: 56px; display: grid; grid-template-columns: 1fr 1fr; background: var(--carbon); --foco: var(--blanco); }
.barra a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.barra a:focus-visible { outline-offset: -4px; }
.barra-llamar { background: var(--naranja); color: var(--tinta); }
.barra-ir { color: var(--blanco); }
@media (max-width: 359px) { .barra a { font-size: .9375rem; gap: 6px; } .barra .ico { width: 20px; height: 20px; } }
@media (min-width: 901px) { .barra { display: none; } }

/* ---------- Movimiento (solo transform, opacity y stroke-dashoffset) ---------- */
.sello g { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. El sello se monta, una vez */
  .sello-hero .s-anillo { animation: anillo 700ms cubic-bezier(.3, 1.35, .5, 1) both; }
  .sello-hero .s-mono { animation: aparece 400ms ease-out 300ms both; }
  .sello-hero .s-llave { animation: llave 350ms var(--ease) 650ms both; }
  .sello-hero .s-rayo { animation: rayo 180ms steps(1, end) 1000ms both; }
  .sello-hero .s-copo { animation: copo 400ms var(--ease) 1000ms both; }
  .h1-nombre, .h1-lema, .hero-sub, .hero .acciones { animation: sube 450ms var(--ease) both; }
  .h1-lema { animation-delay: 80ms; }
  .hero-sub { animation-delay: 160ms; }
  .hero .acciones { animation-delay: 240ms; }
  @keyframes anillo { from { transform: rotate(-90deg); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
  @keyframes aparece { from { opacity: 0; } }
  @keyframes llave { from { transform: rotate(-45deg); opacity: 0; } }
  @keyframes rayo { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; } 75%, 100% { opacity: 1; } }
  @keyframes copo { from { transform: rotate(-180deg) scale(.6); opacity: 0; } }
  @keyframes sube { from { transform: translateY(18px); opacity: 0; } }

  /* 2. El sello responde al puntero o al toque */
  .sello .hv { transition: transform 300ms var(--ease); }
  .sello.toque .s-llave .hv { animation: toca-llave 300ms ease-out; }
  .sello.toque .s-copo .hv { animation: toca-copo 300ms ease-out; }
  .sello.toque .s-rayo .hv { animation: toca-rayo 300ms steps(1, end); }
  @keyframes toca-llave { 50% { transform: rotate(12deg); } }
  @keyframes toca-copo { to { transform: rotate(60deg); } }
  @keyframes toca-rayo { 30% { opacity: 0; } 60% { opacity: 1; } }

  /* 3-7. Entradas con el scroll: las clases las pone el JS, sin JS todo se ve */
  .js [data-rev] .dib, .js .mecanica-izq[data-rev] .circuito { opacity: 0; }
  .js [data-rev] .dib *, .js [data-rev] .c-linea, .js .tablero[data-rev] .ico, .js .hoja[data-rev] .casilla path { stroke-dasharray: 1 1.5; stroke-dashoffset: 1.2; }
  .js [data-rev].visto .dib, .js .mecanica-izq.visto .circuito { opacity: 1; transition: opacity 200ms ease-out; }
  .js [data-rev].visto .dib * { stroke-dashoffset: 0; transition: stroke-dashoffset 700ms var(--ease) 150ms; }

  .js .paneles[data-rev] .panel, .js .frases[data-rev] .placa { opacity: 0; transform: translateY(24px); }
  .js .paneles.visto .panel, .js .frases.visto .placa { opacity: 1; transform: none; transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  .js .paneles.visto .panel:nth-child(2) { transition-delay: 90ms; }
  .js .paneles.visto .panel:nth-child(3) { transition-delay: 180ms; }
  .js .paneles.visto .panel:nth-child(2) .dib * { transition-delay: 240ms; }
  .js .paneles.visto .panel:nth-child(3) .dib * { transition-delay: 330ms; }
  .js .frases.visto .placa:nth-child(2) { transition-delay: 60ms; }
  .js .frases.visto .placa:nth-child(3) { transition-delay: 120ms; }
  .js .frases.visto .placa:nth-child(4) { transition-delay: 180ms; }
  .js .frases.hecho .placa, .js .paneles.hecho .panel { transition: transform 200ms ease-out, box-shadow 200ms ease-out; transition-delay: 0s; }

  .js .tablero[data-rev] .tablero-cab { transform: translateY(-100%); }
  .js .tablero[data-rev] li { opacity: 0; transform: translateX(-12px); }
  .js .tablero.visto .tablero-cab { transform: none; transition: transform 350ms var(--ease); }
  .js .tablero.visto li { opacity: 1; transform: none; transition: opacity 300ms var(--ease) calc(200ms + var(--i) * 50ms), transform 300ms var(--ease) calc(200ms + var(--i) * 50ms), background-color 180ms ease-out; }
  .js .tablero.visto .ico { stroke-dashoffset: 0; transition: stroke-dashoffset 500ms var(--ease) calc(300ms + var(--i) * 50ms), color 180ms ease-out; }

  .js .mecanica-izq.visto .c-linea { stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms cubic-bezier(.45, 0, .3, 1) 100ms; }
  .js .mecanica-izq[data-rev] .c-nodos circle { transform: scale(0.4); opacity: 0; }
  .js .mecanica-izq.visto .c-nodos circle { transform: none; opacity: 1; transition: transform 260ms cubic-bezier(.3, 1.5, .5, 1), opacity 120ms; }
  .js .mecanica-izq.visto .c-nodos circle:nth-child(1) { transition-delay: 100ms; }
  .js .mecanica-izq.visto .c-nodos circle:nth-child(2) { transition-delay: 450ms; }
  .js .mecanica-izq.visto .c-nodos circle:nth-child(3) { transition-delay: 600ms; }
  .js .mecanica-izq.visto .c-nodos circle:nth-child(4) { transition-delay: 900ms; }
  .js .mecanica-izq.visto .c-nodos circle:nth-child(5) { transition-delay: 1050ms; }
  .js .mecanica-izq.visto .c-nodos circle:nth-child(6) { transition-delay: 1650ms; }
  .js .mecanica-izq[data-rev] .c-rayos { opacity: 0; }
  .js .mecanica-izq.visto .c-rayos { opacity: 1; transition: opacity 250ms ease-out 1750ms; }

  .js .rev-panel[data-rev] .sube { transform: translateY(14px); }
  .js .rev-panel.visto .sube { transform: none; transition: transform 600ms var(--ease) 700ms; }
  .js .hoja.visto .casilla path { stroke-dashoffset: 0; transition: stroke-dashoffset 250ms ease-out; }
  .js .hoja.visto li:nth-child(2) .casilla path { transition-delay: 180ms; }
  .js .hoja.visto li:nth-child(3) .casilla path { transition-delay: 360ms; }
  .js .hoja.visto li:nth-child(4) .casilla path { transition-delay: 540ms; }

  .js .contacto[data-rev] .aro-giro { transform: rotate(-30deg); }
  .js .contacto.visto .aro-giro { transform: none; transition: transform 900ms var(--ease); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sello:hover .s-llave .hv { transform: rotate(12deg); }
  .sello:hover .s-copo .hv { transform: rotate(60deg); }
  .sello:hover .s-rayo .hv { animation: toca-rayo 300ms steps(1, end); }
}

/* Movimiento reducido: todo montado, dibujado y marcado desde el principio. Los hovers solo cambian color y sombra. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .placa, .marco img, .menu, .menu nav a, .nav a::after { transition: none; }
  .btn:hover, .btn:active, .placa:hover, .marco:hover img { transform: none; }
  .menu nav a { opacity: 1; transform: none; }
}

@media print { .cabecera, .barra, .menu { display: none; } }

/* fotos reales del taller (fachada + su web antigua) */
.fotos { padding-block: clamp(40px, 6vw, 72px); }
.fotos-in { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.fotos figure { margin: 0; padding: 8px; max-width: none; width: auto; justify-self: stretch; }
.fotos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fotos .f-rotulo { grid-column: 1 / -1; }
.fotos .f-rotulo img { aspect-ratio: 910/112; }
@media (max-width: 700px) { .fotos-in { grid-template-columns: 1fr 1fr; } }
