/* ==========================================================
   BC MÉDICA — Catálogo de productos
   Tokens de marca
   ========================================================== */
:root{
  --bcm-azul: #0360BB;
  --bcm-azul-oscuro: #024A94;
  --bcm-tinta: #0B2545;
  --bcm-cuerpo: #475569;
  --bcm-fondo: #FFFFFF;
  --bcm-fondo-suave: #F4F8FB;
  --bcm-borde: #E1E8F0;
  --bcm-acento: #0EA5A0;

  --bcm-fuente-titulo: 'Manrope', sans-serif;
  --bcm-fuente-cuerpo: 'Public Sans', sans-serif;

  --bcm-radio: 14px;
  --bcm-sombra: 0 4px 20px rgba(3, 96, 187, 0.08);
  --bcm-sombra-hover: 0 12px 32px rgba(3, 96, 187, 0.16);
}

.bcm-productos-page,
.bcm-producto-detalle{
  font-family: var(--bcm-fuente-cuerpo);
  color: var(--bcm-cuerpo);
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.bcm-productos-page h1,
.bcm-producto-detalle h1,
.bcm-producto-detalle h2,
.bcm-producto-detalle h3,
.bcm-ficha-titulo{
  font-family: var(--bcm-fuente-titulo);
  color: var(--bcm-tinta);
  margin: 0 0 8px;
}

/* ---------- Hero de la página de categoría ---------- */
.bcm-productos-hero{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.bcm-eyebrow{
  font-family: var(--bcm-fuente-titulo);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bcm-azul);
  margin: 0 0 8px;
}
.bcm-productos-hero h1{
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}
.bcm-productos-hero-desc{
  font-size: 16px;
  margin-top: 8px;
}

/* ---------- Pestañas de categoría ---------- */
.bcm-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.bcm-tab{
  font-family: var(--bcm-fuente-cuerpo);
  font-weight: 600;
  font-size: 14px;
  color: var(--bcm-tinta);
  background: var(--bcm-fondo);
  border: 1px solid var(--bcm-borde);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bcm-tab:hover{
  border-color: var(--bcm-azul);
  color: var(--bcm-azul);
}
.bcm-tab.is-active{
  background: var(--bcm-azul);
  border-color: var(--bcm-azul);
  color: #fff;
}

/* ---------- Grilla de tarjetas ---------- */
.bcm-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px){ .bcm-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){ .bcm-grid{ grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 460px){ .bcm-grid{ grid-template-columns: 1fr; } }

.bcm-sin-productos{
  grid-column: 1 / -1;
  text-align: center;
  color: var(--bcm-cuerpo);
  padding: 40px 0;
}

.bcm-card{
  display: flex;
  flex-direction: column;
  background: var(--bcm-fondo);
  border: 1px solid var(--bcm-borde);
  border-radius: var(--bcm-radio);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--bcm-sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bcm-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--bcm-sombra-hover);
  border-color: var(--bcm-azul);
}
.bcm-card-imagen{
  aspect-ratio: 1 / 1;
  background: var(--bcm-fondo-suave);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bcm-card-imagen img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bcm-card-imagen-placeholder{
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bcm-fondo-suave) 0%, #E4EEF7 100%);
}
.bcm-card-info{
  padding: 16px 18px 20px;
}
.bcm-card-categoria{
  display: inline-block;
  font-family: var(--bcm-fuente-titulo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bcm-acento);
  margin-bottom: 6px;
}
.bcm-card-nombre{
  font-family: var(--bcm-fuente-titulo);
  font-size: 16px;
  font-weight: 700;
  color: var(--bcm-tinta);
  line-height: 1.3;
  margin: 0;
}

/* ==========================================================
   DETALLE DE PRODUCTO — estilo ficha técnica / datasheet
   ========================================================== */
.bcm-breadcrumb{
  font-size: 13px;
  color: var(--bcm-cuerpo);
  margin-bottom: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bcm-breadcrumb a{
  color: var(--bcm-cuerpo);
  text-decoration: none;
}
.bcm-breadcrumb a:hover{ color: var(--bcm-azul); }
.bcm-breadcrumb .is-actual{ color: var(--bcm-tinta); font-weight: 600; }

.bcm-producto-hero{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
@media (max-width: 860px){
  .bcm-producto-hero{ grid-template-columns: 1fr; gap: 24px; }
}
.bcm-producto-hero-imagen{
  background: var(--bcm-fondo-suave);
  border-radius: var(--bcm-radio);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.bcm-producto-hero-imagen img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bcm-producto-hero-info h1{
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 4px;
}
.bcm-producto-descripcion{
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.65;
}
.bcm-producto-descripcion p{ margin: 0 0 12px; }

.bcm-ficha-tecnica{
  border-top: 1px solid var(--bcm-borde);
  padding-top: 40px;
}
.bcm-ficha-titulo{
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}
.bcm-ficha-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px){
  .bcm-ficha-grid{ grid-template-columns: 1fr; }
}
.bcm-ficha-bloque{
  background: var(--bcm-fondo-suave);
  border-radius: var(--bcm-radio);
  padding: 24px;
}
.bcm-ficha-icono{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--bcm-azul);
  margin-bottom: 14px;
}
.bcm-ficha-icono svg{ width: 20px; height: 20px; }
.bcm-ficha-bloque h3{
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}
.bcm-ficha-bloque p{
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  color: var(--bcm-cuerpo);
  white-space: pre-line;
}

.bcm-producto-volver{
  margin-top: 48px;
}
.bcm-producto-volver a{
  font-family: var(--bcm-fuente-titulo);
  font-weight: 700;
  font-size: 14px;
  color: var(--bcm-azul);
  text-decoration: none;
}
.bcm-producto-volver a:hover{ color: var(--bcm-azul-oscuro); }

/* Foco de teclado visible (accesibilidad) */
.bcm-card:focus-visible,
.bcm-tab:focus-visible,
.bcm-producto-volver a:focus-visible{
  outline: 2px solid var(--bcm-azul);
  outline-offset: 2px;
}
