/* Taller Serra — справочник ламп: приборная панель, фильтр, плитки,
   панель лампы. */

/* ══ testigos: приборная панель, фильтр, плитки, панель лампы ═════════ */
.cuadro-grande { display: grid; gap: 12px; margin-top: 36px; }
.cuadro-grande__svg { width: 100%; height: auto; }
.cuadro-num { font-family: var(--cond); font-weight: 600; font-size: 22px; fill: #c9cbc9; }
.cuadro-unidad { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .14em; fill: var(--texto-2); text-transform: uppercase; }
.cuadro-lcd { font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: .2em; fill: var(--texto-2); }
.cuadro-luz { filter: drop-shadow(0 0 5px currentColor); animation: encender 3.2s ease-out both; animation-delay: calc(var(--k) * 40ms); }
@keyframes encender { 0% { opacity: .15; } 12% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: .9; } }
.cuadro-aguja { transform-box: view-box; animation: barrido 2.6s ease-in-out .3s both; }
.cuadro-dial--izq .cuadro-aguja { transform-origin: 210px 210px; }
.cuadro-dial--der .cuadro-aguja { transform-origin: 790px 210px; }
@keyframes barrido { 0% { transform: rotate(0); } 45% { transform: rotate(270deg); } 100% { transform: rotate(0); } }
.filtro-luces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 44px; }
@media (min-width: 700px) { .filtro-luces { display: flex; flex-wrap: wrap; gap: 10px; } }
.filtro-luces label { position: relative; display: flex; }
.filtro-luces input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.filtro-luces span {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 8px 18px; border: 1px solid var(--linea-2); background: var(--asfalto);
  font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-2); cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.filtro-luces b { font-weight: 600; color: var(--texto-2); }
.filtro-luces i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.filtro-luces label:hover span { color: var(--texto); }
.filtro-luces input:checked + span { background: var(--panel-2); color: var(--texto); border-color: var(--amarillo); box-shadow: inset 0 -3px 0 var(--amarillo); }
.filtro-luces input:focus-visible + span { outline: 2px solid var(--amarillo); outline-offset: 2px; }
.luces-grupo { margin-bottom: 56px; }
.luces-grupo > .peligro { margin-bottom: 20px; }
.luces-grupo__cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "m t n" "m e e"; gap: 6px 14px; align-items: center; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--linea); }
.luces-grupo__muestra { grid-area: m; align-self: start; width: 18px; height: 18px; margin-top: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; }
.luces-grupo__cab h2 { grid-area: t; font-size: clamp(30px, 4.2vw, 46px); }
.luces-grupo__cab h2 span { color: var(--texto-2); }
.luces-grupo__expl { grid-area: e; color: var(--texto-2); }
.luces-grupo__n { grid-area: n; font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-2); white-space: nowrap; }
.luces { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .luces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .luces { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1150px) { .luces { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.testigo { position: relative; display: grid; align-content: start; gap: 8px; padding: 14px 14px 16px; background: var(--panel); border: 1px solid var(--linea); transition: border-color .2s, transform .2s; }
.testigo__luz { display: grid; place-items: center; height: 104px; margin: -2px -2px 6px; background: var(--negro); border-radius: 10px; box-shadow: inset 0 0 30px rgba(0, 0, 0, .9); }
.testigo__luz svg { width: 58px; height: 58px; filter: drop-shadow(0 0 7px currentColor); transition: transform .25s; }
.testigo__nombre { font-size: 20px; line-height: 1.05; letter-spacing: .02em; }
.testigo__seguir { font-size: 14px; color: var(--texto-2); }
.seguir { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.seguir--si { color: var(--verde); } .seguir--cuidado { color: var(--ambar); } .seguir--no { color: var(--rojo); }
.testigo__info { display: grid; gap: 8px; margin-top: 6px; font-size: 14.5px; color: var(--texto-2); }
.js .testigo__info { display: none; }
.testigo__abrir { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
.testigo__abrir:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 2px; }
.testigo:hover { border-color: var(--linea-2); }
.testigo:hover .testigo__luz svg { transform: scale(1.08); }
.colores { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.colores li { display: grid; gap: 8px; padding: 26px 0 26px 22px; border-bottom: 1px solid var(--linea); border-left: 6px solid var(--c); }
@media (min-width: 900px) { .colores li { grid-template-columns: 300px 1fr; align-items: center; gap: 32px; padding: 34px 0 34px 30px; } }
.colores__rojo { --c: var(--rojo); } .colores__ambar { --c: var(--ambar); } .colores__verde { --c: var(--verde); }
.colores b { font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 6vw, 76px); line-height: .9; text-transform: uppercase; color: var(--c); }
.colores span { font-size: 18px; color: #c9cbc9; max-width: 50ch; }
/* панель лампы: снизу на телефоне, справа на мониторе */
.ficha-luz {
  width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; padding: 0; border: 0; border-top: 1px solid var(--linea-2);
  background: var(--panel); color: var(--texto); overflow: auto;
}
.ficha-luz::backdrop { background: rgba(5, 6, 7, .72); }
.ficha-luz[open] { animation: subir .25s ease-out; }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 900px) {
  .ficha-luz { width: 520px; max-height: 100vh; height: 100vh; margin: 0 0 0 auto; border-top: 0; border-left: 1px solid var(--linea-2); }
  .ficha-luz[open] { animation: entrar .25s ease-out; }
  @keyframes entrar { from { transform: translateX(40px); opacity: 0; } }
}
.ficha-luz__cuerpo { position: relative; display: grid; gap: 14px; padding: 26px 20px 28px; }
@media (min-width: 900px) { .ficha-luz__cuerpo { padding: 44px 40px; } }
.ficha-luz__cerrar { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linea-2); background: var(--asfalto); color: var(--texto); cursor: pointer; }
.ficha-luz__cerrar:hover { border-color: var(--texto); }
.ficha-luz__cab { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding-right: 48px; }
.ficha-luz__cab .testigo__luz { height: 112px; margin: 0; }
.ficha-luz__cab .testigo__luz svg { width: 68px; height: 68px; }
.ficha-luz h2 { margin-top: 6px; font-size: 34px; line-height: 1; }
.ficha-luz h3 { margin-top: 8px; font-size: 16px; letter-spacing: .14em; color: var(--texto-2); }
.ficha-luz__seguir { padding: 14px 16px; background: var(--asfalto); border: 1px solid var(--linea); font-size: 16px; }
.ficha-luz__seguir .seguir { font-size: 22px; margin-left: 6px; }
.ficha-luz__nota { padding-left: 12px; border-left: 2px solid var(--linea-2); font-size: 14px; color: var(--texto-2); }
.ficha-luz__acciones { margin-top: 6px; }
@media (min-width: 480px) { .ficha-luz__acciones { display: grid; } .ficha-luz__acciones .btn { width: 100%; } }
@media (max-width: 479px) { .filtro-luces span { gap: 8px; padding: 8px 10px; font-size: 15px; letter-spacing: .04em; } }
