/* Estilos propios de la página de autopartes (catálogo, sello de homologación, tarjetas). El resto viene de ../css/styles.css */
:root{ --amber:#4E82F4; --amber-soft:#AFC8FF; --amber-dim:#1E4FC4; --ice:#12B4D6; --ice-soft:#CFF3F9; --ice-dim:#0C7E96; }
.grain{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(18,180,214,0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(78,130,244,0.06), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
  mix-blend-mode:normal;
}
.section-eyebrow-light{ color:var(--amber-soft); }
.section-title-light{ color:#fff; }
.section-lede-light{ color:rgba(255,255,255,0.75); }
.text-flame{
  background:linear-gradient(100deg, var(--amber-soft), var(--amber) 45%, var(--ice) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.beam-svg{ width:100%; max-width:460px; }
.beam-sweep path{ animation:sweep 5s ease-in-out infinite; }
.beam-sweep path:nth-child(2){ animation-delay:.4s; }
.beam-sweep path:nth-child(3){ animation-delay:.8s; }
@keyframes sweep{
  0%,100%{ opacity:0.15; }
  50%{ opacity:0.6; }
}
.pulse-dot{ animation:pulseDot 2.6s ease-in-out infinite; transform-origin:center; }
@keyframes pulseDot{
  0%,100%{ opacity:0.7; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.25); }
}
.cert-stamp-float{
  position:absolute; top:8%; right:2%;
}
.cert-stamp{
  display:flex; align-items:center; gap:10px;
  background:rgba(23,27,32,0.85);
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:8px 14px 8px 8px;
  backdrop-filter:blur(6px);
}
.cert-stamp-ring{
  width:30px; height:30px; border-radius:50%;
  border:1.5px solid var(--ice);
  color:var(--ice-soft);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--f-display); font-size:15px; font-weight:600;
  flex:none;
}
.cert-stamp-text{
  font-family:var(--f-mono); font-size:10px; letter-spacing:0.05em;
  color:var(--text-muted); line-height:1.3;
}
.cert-chip-list{ display:flex; gap:10px; flex-wrap:wrap; }
.cert-chip{
  font-family:var(--f-mono);
  font-size:12px; letter-spacing:0.04em;
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:6px 14px;
  color:var(--ice-soft);
  background:rgba(18,180,214,0.06);
}
.brand-grid{
  margin-top:44px;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  gap:14px;
}
.brand-card{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius-md);
  padding:22px 16px;
  text-align:center;
  cursor:pointer;
  transition:border-color .18s ease, transform .18s ease, background .18s ease;
}
.brand-card:hover{
  border-color:var(--amber);
  transform:translateY(-3px);
  background:var(--surface-2);
}
.brand-card.is-active{
  border-color:var(--ice);
  background:linear-gradient(160deg, rgba(18,180,214,0.1), rgba(78,130,244,0.06));
}
.brand-card-glyph{
  width:34px; height:34px; margin:0 auto 12px;
  color:var(--text-faint);
}
.brand-card:hover .brand-card-glyph,
.brand-card.is-active .brand-card-glyph{ color:var(--amber); }
.brand-card-name{
  font-family:var(--f-display);
  font-weight:500; font-size:14.5px; letter-spacing:0.03em;
  text-transform:uppercase;
}
.brand-card-count{
  font-family:var(--f-mono);
  font-size:11px; color:var(--text-faint); margin-top:4px;
}
.catalog-filters{
  margin-top:40px;
  display:flex; flex-direction:column; gap:12px;
}
.filter-group{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  font-family:var(--f-mono);
  font-size:12.5px;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid var(--line-strong);
  color:var(--text-muted);
  background:transparent;
  transition:all .15s ease;
}
.chip:hover{ border-color:var(--ice); color:var(--text); }
.chip-active{
  background:var(--text);
  color:var(--bg);
  border-color:var(--text);
}
.chip-active:hover{ color:var(--bg); }
.product-grid{
  margin-top:34px;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:24px;
}
.product-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  border-color:var(--line-strong);
  box-shadow:var(--shadow-lift);
}
.product-media{
  position:relative;
  aspect-ratio:4/3;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(18,180,214,0.16), transparent 55%),
    radial-gradient(120% 100% at 90% 100%, rgba(78,130,244,0.14), transparent 55%),
    linear-gradient(160deg, #16223F, #0A1830);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  overflow:hidden;
}
.product-media img, .product-media video{
  width:100%; height:100%; object-fit:cover;
  position:absolute; inset:0;
}
.product-media-glyph{
  width:64px; height:64px;
  color:rgba(255,255,255,0.14);
  position:relative; z-index:1;
}
.media-badge{
  position:absolute; top:12px; left:12px;
  font-family:var(--f-mono); font-size:10.5px; letter-spacing:0.06em;
  background:rgba(10,12,14,0.7);
  border:1px solid var(--line-strong);
  color:var(--ice-soft);
  padding:4px 9px; border-radius:999px;
  display:flex; align-items:center; gap:5px;
  z-index:2;
}
.media-badge .dot{ width:5px; height:5px; border-radius:50%; background:var(--amber); }
.play-icon{
  position:absolute; z-index:2;
  width:46px; height:46px; border-radius:50%;
  background:rgba(10,12,14,0.55);
  border:1px solid rgba(255,255,255,0.35);
  display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(3px);
}
.play-icon svg{ width:16px; height:16px; color:#fff; margin-left:2px; }
.product-cert{
  position:absolute; bottom:12px; right:12px; z-index:2;
  display:flex; align-items:center; gap:5px;
  font-family:var(--f-mono); font-size:10px; letter-spacing:0.04em;
  background:rgba(10,12,14,0.72);
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:4px 10px 4px 6px;
  color:var(--amber-soft);
}
.product-cert .ring{
  width:16px; height:16px; border-radius:50%;
  border:1px solid var(--amber);
  display:flex; align-items:center; justify-content:center;
  font-size:9px; font-weight:600; color:var(--amber);
}
.product-body{
  padding:20px;
  display:flex; flex-direction:column; gap:12px;
  flex:1;
}
.product-brand{
  font-family:var(--f-mono);
  font-size:11px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--ice-soft);
}
.product-name{
  font-family:var(--f-display);
  font-size:19px; font-weight:500; letter-spacing:0.01em;
}
.product-desc{
  font-size:14px; color:var(--text-muted); line-height:1.5;
  flex:1;
}
.product-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.product-tag{
  font-family:var(--f-mono); font-size:10.5px;
  border:1px solid var(--line-strong); border-radius:6px;
  padding:3px 8px; color:var(--text-faint);
}
.product-foot{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; border-top:1px solid var(--line);
  gap:10px;
}
.product-price{
  font-family:var(--f-mono);
  font-size:12.5px; color:var(--text-muted);
}
.product-price strong{ color:var(--text); font-size:14px; }
.product-cta{
  display:inline-flex; align-items:center; gap:7px;
  font-size:13.5px; font-weight:600; color:var(--wa);
  padding:9px 14px; border-radius:999px;
  border:1px solid rgba(37,211,102,0.4);
  background:rgba(37,211,102,0.08);
  transition:background .15s ease, transform .15s ease;
  white-space:nowrap;
}
.product-cta:hover{ background:rgba(37,211,102,0.16); transform:translateY(-1px); }
.product-cta svg{ width:14px; height:14px; }
.catalog-note{
  margin-top:32px;
  font-family:var(--f-mono);
  font-size:12.5px;
  color:var(--text-faint);
}
.no-results{
  grid-column:1/-1;
  text-align:center;
  padding:60px 20px;
  color:var(--text-faint);
  font-family:var(--f-mono);
  font-size:13.5px;
  border:1px dashed var(--line-strong);
  border-radius:var(--radius-md);
}
.cert-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:56px;
  align-items:center;
}
.cert-list{ margin:26px 0 30px; display:flex; flex-direction:column; gap:14px; }
.cert-list li{
  display:flex; align-items:flex-start; gap:12px;
  font-size:15px; color:var(--text-muted);
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.cert-list li:last-child{ border-bottom:0; padding-bottom:0; }
.cert-code{
  font-family:var(--f-mono);
  font-size:13px; font-weight:600;
  color:var(--bg);
  background:linear-gradient(100deg, var(--amber-soft), var(--ice-soft));
  border-radius:6px;
  padding:3px 8px;
  flex:none;
  min-width:50px;
  text-align:center;
}
.cert-plate{
  background:linear-gradient(160deg, #16223F, #0A1830);
  border:1px solid var(--line-strong);
  border-radius:var(--radius-lg);
  padding:50px 30px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.05), var(--shadow-lift);
}
.cert-plate::before{
  content:'';
  position:absolute; inset:14px;
  border:1px dashed var(--line-strong);
  border-radius:14px;
}
.cert-plate-inner{ text-align:center; position:relative; z-index:1; }
.cert-plate-e{
  display:inline-flex; align-items:center; justify-content:center;
  width:76px; height:76px; border-radius:50%;
  border:2.5px solid var(--ice);
  color:var(--ice-soft);
  font-family:var(--f-display); font-size:38px; font-weight:600;
  margin-bottom:16px;
}
.cert-plate-num{
  display:block;
  font-family:var(--f-mono); font-size:16px; letter-spacing:0.04em;
  color:var(--amber-soft); margin-bottom:14px;
}
.cert-plate-label{
  font-family:var(--f-mono); font-size:10.5px; letter-spacing:0.08em;
  color:var(--text-faint); line-height:1.6;
}
.section-minband{
  background:linear-gradient(120deg, #0B2454, #081A3B 55%, #051530);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.minband-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:40px; flex-wrap:wrap;
}
.lightbox{
  position:fixed; inset:0; z-index:100;
  background:rgba(6,7,9,0.9);
  display:none; align-items:center; justify-content:center;
  padding:24px;
}
/* se perdio al migrar al diseno del sitio (18/09/2026): sin esto la ficha y
   el visor quedaban ocultos y el clic en un producto "no hacia nada" */
.lightbox.is-open{ display:flex; }
.lightbox-inner{
  position:relative; max-width:900px; width:100%;
}
.lightbox-media{
  background:var(--surface);
  border:1px solid var(--line-strong);
  border-radius:var(--radius-md);
  overflow:hidden;
  aspect-ratio:16/10;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-media img, .lightbox-media video{ width:100%; height:100%; object-fit:contain; background:#000; }
.lightbox-close{
  position:absolute; top:-44px; right:0;
  font-size:32px; line-height:1; color:#fff;
  width:40px; height:40px;
}
.product-modal{
  position:fixed; inset:0; z-index:90;
  background:rgba(6,7,9,0.88);
  display:none; align-items:flex-start; justify-content:center;
  padding:56px 20px;
  overflow-y:auto;
}
.product-modal.is-open{ display:flex; }
.product-modal-inner{
  position:relative; max-width:960px; width:100%;
  background:var(--surface);
  border:1px solid var(--line-strong);
  border-radius:var(--radius-lg);
  padding:32px;
}
.product-modal-close{
  position:absolute; top:16px; right:16px;
  font-size:28px; line-height:1; color:var(--text-muted);
  width:40px; height:40px;
  border-radius:50%;
  background:var(--surface-2);
  z-index:2;
}
.product-modal-close:hover{ color:var(--text); }
.product-modal-head{ padding-right:40px; margin-bottom:20px; }
.product-modal-brand{
  font-family:var(--f-mono); font-size:11px; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--ice);
}
.product-modal-name{
  font-family:var(--f-display); font-size:26px; font-weight:600;
  margin:6px 0 8px;
}
.product-modal-desc{ color:var(--text-muted); margin-bottom:16px; max-width:640px; }
.product-modal-video{ margin-bottom:22px; }
.product-modal-video video{
  width:100%; max-height:520px; display:block;
  border-radius:var(--radius-md);
  border:1px solid var(--line);
  background:#000;
}
.product-modal-gallery-label{
  font-family:var(--f-mono); font-size:11px; letter-spacing:0.06em;
  text-transform:uppercase; color:var(--text-faint);
  margin-bottom:12px;
}
.product-modal-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  gap:10px;
}
.product-modal-gallery img{
  width:100%; aspect-ratio:1; object-fit:cover;
  border-radius:var(--radius-sm);
  border:1px solid var(--line);
  cursor:zoom-in;
  transition:border-color .15s ease, transform .15s ease;
}
.product-modal-gallery img:hover{ border-color:var(--line-strong); transform:scale(1.03); }
@media (max-width: 900px){
.cert-grid{ grid-template-columns:1fr; }
.cert-plate{ order:-1; }
.minband-row{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 520px){
.product-grid{ grid-template-columns:1fr; }
.brand-grid{ grid-template-columns:repeat(2, 1fr); }
.cert-stamp-float{ top:4%; right:-2%; transform:scale(0.85); }
.cert-stamp-text{ display:none; }
.cert-stamp{ padding:8px; }
.product-modal{ padding:16px 10px; }
.product-modal-inner{ padding:20px 16px; }
.product-modal-gallery{ grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:6px; }
}
.breadcrumb-dark{
  font-size:13px; color:var(--text-faint); margin-bottom:16px;
}
.breadcrumb-dark a{ color:var(--ice); font-weight:600; }
.breadcrumb-dark a:hover{ text-decoration:underline; }
.pedido-list{
  margin:28px 0 22px;
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px 28px;
  max-width:760px;
}
.pedido-list li{
  display:flex; align-items:flex-start; gap:11px;
  font-size:15px; color:var(--text-muted);
}
.pedido-list svg{ width:19px; height:19px; flex:none; color:var(--ice); margin-top:2px; }
.pedido-cta-note{
  font-size:14.5px; color:var(--text-faint); max-width:620px; margin-bottom:26px;
}
@media (max-width:700px){
.pedido-list{ grid-template-columns:1fr; }
}
