/* ============================================================================
   Diseño aprobado por Celes (31/08/2026) · MC Frenos Deportivos
   ----------------------------------------------------------------------------
   Reproduce la hoja del snapshot `frontend/claude-design/` (que está congelado
   y no se modifica) para la tienda real. Los valores — colores, tipografías,
   espaciados, tamaños — salen de ese archivo; lo que cambia es que acá no hay
   catálogo ni checkout simulado: los datos vienen de la API.

   Las secciones estáticas (hero, quiénes somos, videos, reseñas, contacto,
   pie) llevan los estilos en línea del snapshot. Los `style-hover` del
   snapshot, que sólo existen en su runtime, son las clases `.hv-*` de abajo.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #0b0b0c; color: #f5f5f5;
  font-family: Barlow, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: #ffffff; text-decoration: none; }
a:hover { color: #e30613; }
select, input { font-family: inherit; }
img { max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
body.bloqueado-nav, body.bloqueado-panel { overflow: hidden; }
:focus-visible { outline: 2px solid #ff1f28; outline-offset: 2px; }

@keyframes mcPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
@keyframes mcSlide { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes mcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mcMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mcLoaderGlow { 0%,100% { opacity: .34; } 50% { opacity: .6; } }
@keyframes mcLoaderCue { 0%,100% { opacity: .28; } 50% { opacity: 1; } }
@keyframes mcToast { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mcBeat { 0%,100% { transform: scale(1); } 8% { transform: scale(1.055); } 16% { transform: scale(1); } 24% { transform: scale(1.035); } 32% { transform: scale(1); } }
@keyframes mcLoaderSalida { to { opacity: 0; visibility: hidden; } }

/* Cada copia ocupa, como mínimo, todo el viewport. De ese modo siempre hay
   otra copia entrando cuando la anterior sale, incluso en monitores anchos. */
.franja-beneficios {
  overflow: hidden;
  padding: 8px 0;
  background: #e30613;
}
.franja-beneficios-pista {
  display: flex;
  width: max-content;
  animation: mcMarquee 22s linear infinite;
  will-change: transform;
}
.franja-beneficios-grupo {
  display: flex;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 100vw;
  justify-content: space-around;
  gap: 44px;
  padding: 0 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-rail]::-webkit-scrollbar { display: none; }

@media (min-width:420px){ .boton-carrito-palabra { display: inline !important; } }
@media (min-width:900px){ [data-contacto-grid] { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) !important; } }
@media (max-width:640px){
  #top { background-position: 66% 34%; }
  #top > div:first-child { background: linear-gradient(180deg,rgba(0,0,0,.86) 0%,rgba(0,0,0,.72) 46%,rgba(120,4,10,.5) 100%) !important; }
}
[data-qs-media="compact"] { max-width: none; }
[data-qs-media="compact"] [data-qs-car] { aspect-ratio: auto; height: clamp(150px,42vw,190px); }
[data-qs-media="compact"] [data-qs-grid] { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 8px !important; }
[data-qs-media="compact"] video { min-height: 0 !important; height: clamp(150px,42vw,190px) !important; max-height: none !important; }
@media (min-width:760px){
  [data-qs-media="compact"] { width: 41%; max-width: 41%; }
  [data-qs-media="compact"] [data-qs-car] { height: 118px; }
  [data-qs-media="compact"] video { height: 248px !important; }
}
@media (max-width:359px){ [data-grid] { grid-template-columns: minmax(0,1fr) !important; } }
@media (min-width:360px) and (max-width:767px){
  [data-grid] { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
  [data-grid] [data-compact-hide] { display: none !important; }
  [data-grid] article > div:last-child { padding: 11px !important; gap: 9px !important; }
  [data-grid] h3 { font-size: 15px !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; line-clamp: 2 !important; overflow: hidden !important; }
  [data-grid] article [style*="font-size:26px"] { font-size: 20px !important; }
  [data-grid] article [style*="font-size:11px"],
  [data-grid] article [style*="font-size: 11px"],
  [data-grid] article [style*="font-size:12px"],
  [data-grid] article [style*="font-size: 12px"] { font-size: 13px !important; }
}

/* ── Hover (en el snapshot: `style-hover`) ─────────────────────────────── */
.hv-rojo:hover{background:#ff1f28!important}
.hv-borde:hover{border-color:#e30613!important}
.hv-tarjeta:hover{border-color:#e30613!important;background:#17171b!important}
.hv-texto-negro:hover{color:#0b0b0c!important}
.hv-contacto-wa:hover{background:#a8040e!important;border-color:#fff!important;animation:none!important}
.hv-invertir:hover{background:#fff!important;color:#e30613!important}
.hv-texto-rojo:hover { color: #e30613 !important; }
.hv-limpiar:hover { border-color: #e30613 !important; color: #fff !important; }
.hv-verde:hover { background: #1fb857 !important; }

/* ── Página ─────────────────────────────────────────────────────────────── */
.saltar { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #e30613; color: #fff; padding: 10px 16px; }
.saltar:focus { left: 0; }
.pagina { background: #0b0b0c; overflow-x: clip; }
section[id], #catalogo { scroll-margin-top: 64px; }

/* ── Pantalla de carga ───────────────────────────────────────────────────── */
#cargador {
  position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px,4vh,42px); background: #050506; contain: paint; overflow: hidden; will-change: opacity;
  /* Red de seguridad: si diseno.js no corre, la pantalla se baja sola a los 5 s. */
  animation: mcLoaderSalida .01s linear 5s forwards;
}
#cargador.bajando { animation: none; }
#cargador::before { content: ""; position: absolute; inset: 0; background: radial-gradient(64% 52% at 50% 44%,rgba(255,255,255,.055),transparent 72%); pointer-events: none; }
#cargador-escena { position: relative; width: min(62vmin,430px); aspect-ratio: 1; flex: none; will-change: transform,opacity; }
.cargador-halo { display: none; }
.cargador-brillo-rojo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle,rgba(227,6,19,.42),rgba(227,6,19,.1) 54%,transparent 74%); filter: blur(26px); animation: mcLoaderGlow 3.8s ease-in-out infinite; pointer-events: none; }
#cargador-rotor { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; will-change: transform,filter; filter: drop-shadow(0 26px 44px rgba(0,0,0,.66)); }
#cargador-reflejo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; mix-blend-mode: screen; opacity: .5; }
#cargador-reflejo div { position: absolute; inset: -20%; background: linear-gradient(112deg,transparent 34%,rgba(255,255,255,.14) 47%,rgba(255,255,255,.03) 53%,transparent 66%); }
#cargador-marca { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; flex: none; will-change: opacity; }
.cargador-logo { height: clamp(16px,2.4vmin,24px); width: auto; opacity: .94; }
.cargador-lema { font-family: 'Barlow Condensed',Barlow,system-ui,sans-serif; font-weight: 700; font-size: clamp(10px,1.5vmin,13px); letter-spacing: .36em; text-transform: uppercase; color: #7b7b82; }
.cargador-estado { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cargador-punto { width: 4px; height: 4px; border-radius: 50%; background: #e30613; animation: mcLoaderCue 1.5s ease-in-out infinite; }
#cargador-lectura { font-family: ui-monospace,Menlo,monospace; font-size: 10px; letter-spacing: .24em; color: #5e5e65; text-transform: uppercase; }

/* ── Cabecera ────────────────────────────────────────────────────────────── */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(11,11,12,.94); backdrop-filter: blur(10px); }
.cabecera-fila { max-width: 1240px; margin: 0 auto; padding: 12px clamp(8px,3vw,16px); display: flex; align-items: center; justify-content: space-between; gap: clamp(6px,2vw,12px); min-width: 0; }
.cabecera-logo { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.cabecera-logo img { height: clamp(28px,7vw,40px); width: auto; max-width: 100%; display: block; cursor: pointer; }
.cabecera-acciones { display: flex; align-items: center; gap: 8px; flex: none; }
.boton-menu { border: 1px solid #3a3a40; background: transparent; color: #fff; width: 46px; height: 46px; min-height: 46px; display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.boton-menu-barras { display: block; width: 20px; height: 14px; position: relative; }
.boton-menu-barras span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; }
.boton-menu-barras span:nth-child(1) { top: 0; }
.boton-menu-barras span:nth-child(2) { top: 6px; }
.boton-menu-barras span:nth-child(3) { top: 12px; }
.boton-carrito {
  position: relative; border: 0; color: #fff; font-family: 'Barlow Condensed',sans-serif; font-weight: 700;
  font-size: clamp(14px,3.2vw,16px); letter-spacing: .1em; text-transform: uppercase; padding: 12px clamp(10px,3vw,18px);
  min-height: 46px; cursor: pointer; display: flex; align-items: center; gap: clamp(6px,1.6vw,10px); background-color: #e30613; flex: none;
}
.boton-carrito svg { flex: none; }
.boton-carrito-palabra { display: none; }
.globo {
  min-width: 24px; height: 24px; border-radius: 12px; background: #0b0b0c; display: grid; place-items: center;
  font-family: Barlow,sans-serif; font-weight: 700; font-size: 13px; padding: 0 6px; letter-spacing: 0; text-transform: none;
}

/* ── Menú lateral ────────────────────────────────────────────────────────── */
#mc-nav-capa { position: fixed; inset: 0; z-index: 95; display: flex; justify-content: flex-end; }
.capa-fondo { position: absolute; inset: 0; background: rgba(0,0,0,.72); animation: mcFade .18s ease-out; }
#mc-nav { position: relative; width: min(320px,86vw); height: 100%; background: #0b0b0c; border-left: 2px solid #e30613; display: flex; flex-direction: column; animation: mcSlide .22s ease-out; overflow-y: auto; }
.nav-cabecera { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #26262b; }
.nav-cabecera img { height: 28px; width: auto; }
.boton-cerrar { background: transparent; border: 1px solid #3a3a40; color: #fff; width: 44px; height: 44px; font-size: 20px; cursor: pointer; padding: 0; flex: none; line-height: 1; }
.nav-enlaces { display: flex; flex-direction: column; padding: 8px 0; }
.nav-enlaces a { padding: 16px 20px; font-family: 'Archivo Black',sans-serif; font-size: 17px; text-transform: uppercase; border-bottom: 1px solid #1b1b1e; color: #fff; }
.nav-enlaces a:hover, .nav-enlaces a.activo { background: #141417; color: #e30613; border-left: 4px solid #e30613; padding-left: 16px; }
.nav-pie { padding: 20px; margin-top: auto; }
.nav-wa { display: flex; align-items: center; justify-content: center; gap: 10px; background: #e30613; color: #fff; font-family: 'Barlow Condensed',sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; padding: 15px; min-height: 52px; }
.nav-wa:hover { color: #fff; }
.nav-wa span { width: 9px; height: 9px; background: #25d366; border-radius: 50%; flex: none; }

/* ── Avisos del retorno de pago ─────────────────────────────────────────── */
.avisos-pago:not(:empty) { max-width: 1240px; margin: 0 auto; padding: 16px 16px 0; }

/* ── Catálogo ────────────────────────────────────────────────────────────── */
.seccion-catalogo { background: #0b0b0c; }
.catalogo-caja { max-width: 1240px; margin: 0 auto; padding: 48px 16px; }
.etiqueta-seccion { font-family: 'Barlow Condensed',sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .24em; color: #e30613; text-transform: uppercase; margin-bottom: 12px; }
.titulo-seccion { font-family: 'Archivo Black',sans-serif; font-size: clamp(26px,6.5vw,42px); line-height: 1.02; margin: 0 0 24px; text-transform: uppercase; color: #fff; }
.filtros-caja { background: #141417; border: 1px solid #26262b; border-top: 3px solid #e30613; padding: 18px; margin-bottom: 10px; }
.filtros-grilla { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; }
.filtro { display: block; }
.filtro > span { display: block; font-family: 'Archivo Black'; font-weight: 700; font-size: 12px; letter-spacing: .18em; color: #fff; text-transform: uppercase; margin-bottom: 7px; }
.filtro select, .filtro input { width: 100%; min-height: 48px; background: #0b0b0c; color: #8b8b8f; border: 1px solid #3a3a40; padding: 0 12px; font-size: 16px; font-weight: 600; border-radius: 0; }
.filtro select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#8b8b8f 50%),linear-gradient(135deg,#8b8b8f 50%,transparent 50%); background-position: calc(100% - 18px) 21px,calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.filtro select:disabled { opacity: .5; }
.filtros-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.filtros-cuenta { font-family: 'Archivo Black'; font-weight: 700; font-size: 14px; letter-spacing: .14em; color: #8b8b8f; text-transform: uppercase; }
.boton-limpiar { background: transparent; border: 1px solid #3a3a40; color: #c9c9cf; font-family: 'Archivo Black'; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; min-height: 44px; cursor: pointer; }
.boton-limpiar:hover { color: #fff; }
.grilla { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; margin-top: 18px; }
.mas { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.mas-info { font-size: 14px; color: #8b8b8f; text-align: center; }
.boton-mas { background: transparent; border: 1px solid #3a3a40; color: #fff; font-family: 'Trebuchet MS'; font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; padding: 13px 22px; min-height: 48px; cursor: pointer; }
.boton-mas:disabled { opacity: .5; cursor: wait; }

/* Tarjeta de producto: la arma app.js con los estilos del snapshot; acá, el resto. */
.tarjeta-producto { background: #141417; border: 1px solid #26262b; display: flex; flex-direction: column; }
.tarjeta-producto img { max-width: none; }
.tarjeta-agregar:disabled { opacity: .45; cursor: not-allowed; }
.sin-foto { display: grid; place-items: center; width: 100%; height: 100%; color: #6b6b71; font-size: 13px; background: #f1f1f3; }

/* ── Aviso "agregado al carrito" ─────────────────────────────────────────── */
.aviso-agregado { position: fixed; left: 16px; right: 16px; bottom: 92px; z-index: 85; display: flex; justify-content: center; pointer-events: none; }
.aviso-agregado-caja { pointer-events: auto; width: min(420px,100%); background: #141417; border: 1px solid #26262b; border-left: 4px solid #25d366; box-shadow: 0 18px 40px rgba(0,0,0,.6); padding: 14px; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; animation: mcToast .26s cubic-bezier(.22,1,.36,1); }
.aviso-agregado-caja img { width: 52px; height: 52px; object-fit: contain; display: block; background: #fff; border: 1px solid #26262b; }
.aviso-agregado-texto { min-width: 0; }
.aviso-agregado-etiqueta { font-family: 'Barlow Condensed',sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #25d366; margin-bottom: 3px; }
.aviso-agregado-titulo { font-family: 'Archivo Black',sans-serif; font-size: 14px; line-height: 1.2; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aviso-agregado-codigo { font-family: ui-monospace,Menlo,monospace; font-size: 11px; color: #8b8b8f; margin-top: 3px; }
.aviso-agregado-botones { display: flex; flex-direction: column; gap: 6px; }
.aviso-agregado-botones button:first-child { background: #e30613; border: 0; color: #fff; font-family: 'Barlow Condensed',sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.aviso-agregado-botones button:last-child { background: transparent; border: 1px solid #3a3a40; color: #8b8b8f; font-size: 16px; min-height: 30px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
