/* Estilos del lightbox y de la ficha de vehículo (CarricocheFicha),
   compartidos entre taller.html y el álbum de vehículos de index.html. */
.lightbox { position: fixed; inset: 0; z-index: 850; background: #171209; color: #F4EDDD; display: none; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; }
.lightbox.is-open { display: block; }
.lightbox .close { position: fixed; top: 24px; right: 24px; z-index: 20; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #F4EDDD; background: rgba(23,18,9,.55); color: #F4EDDD; font-size: 21px; cursor: pointer; }
.lb-photo { scroll-snap-align: start; position: relative; width: 100%; height: 100vh; cursor: zoom-out; overflow: hidden; }
.lightbox-img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: lb-img 7s cubic-bezier(.2,.6,.25,1) both; }
.lb-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,18,9,.88) 0%, rgba(23,18,9,.18) 32%, rgba(23,18,9,0) 55%); pointer-events: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(244,237,221,.55); background: rgba(23,18,9,.5); color: #F4EDDD; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-nav:hover { background: rgba(23,18,9,.78); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-nav[hidden] { display: none; }
.lb-hint { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'Raleway', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #F4EDDD; text-shadow: 0 2px 10px rgba(0,0,0,.6); pointer-events: none; }
.lb-hint span:last-child { animation: lb-bounce 1.7s ease-in-out infinite; }
.lightbox .close:focus-visible, .lb-nav:focus-visible { outline: 3px solid #F5E7C8; outline-offset: 3px; }
.lb-ficha { scroll-snap-align: start; min-height: 100vh; width: 100%; box-sizing: border-box; background: #F8F6F1; color: #201811; padding: 64px 34px 80px; display: flex; justify-content: center; }
.lb-ficha-inner { max-width: 790px; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.panel-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid #201811; padding-bottom: 18px; }
.panel-title strong { font-weight: 300; font-size: 38px; line-height: 1; text-transform: uppercase; }
.panel-title span { font-family: 'Courier Prime', ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 15px; color: #7F251A; background: #F4EDDD; border: 1px solid rgba(160,59,42,.4); padding: 4px 12px; border-radius: 3px; }
.panel-title span.panel-category { font-family: 'Raleway', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #A03B2A; background: rgba(160,59,42,.07); }
.panel-title span.panel-count { margin-left: auto; font-weight: 400; font-size: 14px; color: #6B5D48; background: none; border: none; padding: 0; }
.panel-desc { display: flex; flex-direction: column; gap: 18px; }
.desc-section { position: relative; padding: 0 0 18px; border-bottom: 1px dashed rgba(32,24,17,.22); opacity: 1; animation: desc-rise-motion .42s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.desc-section:last-child { border-bottom: none; padding-bottom: 0; }
.desc-title { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(23px, 3vw, 32px); line-height: 1.05; font-weight: 700; color: #201811; letter-spacing: 0; }
.desc-title::before { content: ""; width: 28px; height: 10px; flex: 0 0 auto; background: radial-gradient(circle at 5px 50%, #A03B2A 0 4px, transparent 4.5px), radial-gradient(circle at 20px 50%, #C99C44 0 4px, transparent 4.5px); }
.desc-section p { margin: 0 0 12px; font-size: 18px; line-height: 1.72; color: #3E3327; }
.desc-section p:last-child { margin-bottom: 0; }
.desc-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.desc-spec { min-width: 0; background: #FDFBF5; border: 1px solid rgba(32,24,17,.2); border-radius: 7px; padding: 10px 12px; box-shadow: 3px 4px 0 rgba(32,24,17,.08); }
.desc-spec-label { display: block; margin-bottom: 3px; font-family: 'Courier Prime', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #A03B2A; }
.desc-spec-value { display: block; font-size: 15px; line-height: 1.35; color: #201811; font-weight: 650; overflow-wrap: anywhere; }
.desc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.desc-list li { position: relative; margin: 0; padding: 10px 12px 10px 34px; background: #FDFBF5; border: 1px solid rgba(32,24,17,.16); border-radius: 7px; color: #3E3327; font-size: 16px; line-height: 1.45; box-shadow: 2px 3px 0 rgba(32,24,17,.07); }
.desc-list li::before { content: ""; position: absolute; left: 12px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: #A03B2A; box-shadow: 0 0 0 3px rgba(160,59,42,.12); }
.panel-specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 20px; border-top: 1px dashed rgba(32,24,17,.28); padding-top: 16px; }
.panel-spec { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4A3F30; }
.panel-spec svg { width: 16px; height: 16px; flex-shrink: 0; color: #A03B2A; }
.panel-singularities { padding-top: 16px; border-top: 1px dashed rgba(32,24,17,.28); }
.panel-singularities-title { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6B5D48; margin: 0 0 6px; }
.panel-singularities ul { margin: 0; padding-left: 16px; font-size: 14px; color: #4A3F30; line-height: 1.5; }
.lb-seal-end { margin-top: 2px; padding-top: 22px; border-top: 1.5px dashed rgba(32,24,17,.3); display: flex; justify-content: center; }
.lb-seal-end img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(32,24,17,.25)); }
@keyframes lb-img { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes lb-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes desc-rise-motion { from { transform: translateY(16px); } to { transform: translateY(0); } }
@media (max-width: 620px) {
  .lb-nav { width: 42px; height: 42px; font-size: 19px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-ficha { padding: 54px 18px 64px; }
  .desc-spec-grid { grid-template-columns: 1fr; }
  .desc-section p { font-size: 16.5px; }
  .lb-seal-end img { width: 52px; height: 52px; }
  .panel-title strong { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .desc-section { opacity: 1; animation: none; transform: none; }
}
