/* ==========================================================================
   Ajustes responsive (2026-11)
   Hoja cargada la ULTIMA desde index.php. Todo lo especifico de movil/tablet
   va dentro de media queries; el escritorio no cambia salvo contraste/iconos.
   ========================================================================== */

/* Iconos: la fuente "crm" (flechas del pie, iconos icon-*) no tenia @font-face
   y se veian cuadrados. */
@font-face{font-family:crm;src:url('../font/crm.woff2') format('woff2'),url('../font/crm.woff') format('woff'),url('../font/crm.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}

/* Contraste: la referencia del producto era #d8d8d8 sobre blanco (1,4:1) */
.product-reference.color-grey{color:#6f6f6f}

/* ---------- Movil (<768px) ---------- */
@media (max-width:767.98px){

  /* Cabecera: logos a la izquierda, iconos de 44px a la derecha */
  header .container{width:100%;padding-left:12px;padding-right:12px}
  header .container>.row:first-child{display:flex;flex-wrap:nowrap;align-items:center;margin:0}
  header .container>.row:first-child>div:nth-child(1){flex:1 1 auto;width:auto;max-width:none;min-width:0;gap:10px;padding:0}
  header .container>.row:first-child>div:nth-child(2){display:none}
  header .container>.row:first-child>div:nth-child(3){flex:0 0 auto;width:auto;max-width:none;padding:0}
  header .logoHeader{flex:0 0 auto;width:auto;height:auto}
  header .logoHeader img.logoCorgrap{width:92px;height:auto}
  header .logoHeader img.beaBadge{height:26px!important;max-height:26px!important;width:auto!important;margin:0!important}
  #user,#shopping_cart{flex:0 0 44px;width:44px!important;height:44px;margin:0!important;position:relative}
  #user>a,#shopping_cart>a,#buscadorPeque,#menuPeque{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;margin:0!important}
  #user>a>img,#shopping_cart>a>img,#buscadorPeque img,#menuPeque img{width:26px;height:26px;margin:0!important}
  #cart_number{top:3px!important;right:2px!important;left:auto!important}

  /* Listado: sin desbordamiento lateral y texto legible */
  .product-general.row{margin-left:0;margin-right:0}
  .product-name{font-size:15px;line-height:1.3}
  .product-reference{font-size:13px}

  /* Cinta flotante de BeA: mas pequena para no tapar contenido */
  .bea_sticky{bottom:12px}
  .bea_sticky img{max-height:44px}

  /* Pie: acordeones y enlaces con area tactil de 44px */
  footer .col-6 h6{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin:0;padding:0;cursor:pointer}
  footer nav.f0 li{margin:0}
  footer nav.f0 a{display:inline-block;padding:.85rem 0;font-size:14px;line-height:1.3}
  footer .f0{font-size:14px;line-height:1.5}
  footer a[href^="tel"]{display:inline-block;padding:.65rem 0;font-size:16px;font-weight:700}
  .bg-grey-dark .row.f0{padding-bottom:3.5rem!important;line-height:1.9;font-size:13px}
  .bg-grey-dark .row.f0 a{display:inline-block;padding:.25rem .25rem!important}
}

/* ---------- Ficha de producto: movil (<768px) ---------- */
@media (max-width:767.98px){
  /* Barra pegajosa: titulo en una linea y boton compacto */
  .nav_product .product_info{flex-wrap:nowrap;gap:.5rem}
  .nav_product .product_info_image{flex:0 0 44px;width:44px}
  .nav_product .product_info_image img{width:44px;height:44px;object-fit:contain}
  .nav_product .product_info_content{flex:1 1 0;min-width:0;margin-left:0}
  .nav_product .product_info_content .bold{font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .nav_product .boton_solicitarInfo{flex:0 0 auto;margin-left:0!important;max-width:112px;min-height:44px;padding:.4rem .6rem;font-size:13px;line-height:1.15;text-align:center;display:flex;align-items:center;justify-content:center}
  /* Carrusel de imagenes y descargas: zonas tactiles de 44px */
  .owl-carousel .owl-dots{display:flex;justify-content:center}
  .owl-carousel .owl-dot{min-width:32px;min-height:44px;display:flex;align-items:center;justify-content:center}
  .item.f12 a{display:inline-flex;align-items:center;min-height:44px}
}

/* ---------- Moviles muy estrechos (<=359px, p. ej. 320px) ---------- */
@media (max-width:359.98px){
  header .container{padding-left:8px;padding-right:8px}
  header .container>.row:first-child>div:nth-child(1){gap:6px}
  header .logoHeader img.logoCorgrap{width:76px}
  header .logoHeader img.beaBadge{height:22px!important;max-height:22px!important}
  #user,#shopping_cart{flex-basis:40px;width:40px!important}
  #user>a,#shopping_cart>a,#buscadorPeque,#menuPeque{width:40px}
  #user>a>img,#shopping_cart>a>img,#buscadorPeque img,#menuPeque img{width:24px;height:24px}
}

/* ---------- Bloque de suscripcion del pie: sin desbordar el ancho ---------- */
#suscribeFooter{margin-left:0;margin-right:0;max-width:100%}
