/* ============================================================
   CENTRO QUÍMICO - HEADER REDISEÑADO (según diseño de referencia)
   Barra superior azul marino + barra de navegación
   ============================================================ */

:root{
  --cq-navy: #0053a8;   /* azul plantilla exacto rgb(0,83,168) */
  --cq-navy-2: #0053a8; /* nav mismo tono que la barra superior */
  --cq-orange: #f47b20;
  --cq-sky: #0087ff;    /* botón CONTACTO celeste rgb(0,135,255) */
  --cq-wa: #25d366;
}

/* ---------- HEADER WRAPPER ---------- */
.cq-header{
  width:100%;
  position:relative;
  z-index:1000;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  font-family:inherit;
}

/* ---------- BARRA SUPERIOR (azul marino) ---------- */
.cq-header-top{
  background:var(--cq-navy);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 40px;
  flex-wrap:wrap;
}

/* Logo */
.cq-logo{ display:inline-flex; align-items:center; text-decoration:none; flex:0 0 auto; }
.cq-logo-img{ height:50px !important; width:auto !important; max-width:260px !important; display:block; }
.cq-header-top .cq-logo img{ height:50px !important; width:auto !important; max-width:260px !important; }
.cq-logo-text .cq-logo-brand{ color:#fff; font-size:26px; font-weight:800; line-height:1; letter-spacing:.5px; }
.cq-logo-text .cq-logo-brand span{ color:#fff; }
.cq-logo-text .cq-logo-sub{ color:#cdd8f3; font-size:10px; margin-top:4px; letter-spacing:.3px; }

/* Acciones derecha */
.cq-header-actions{ display:flex; align-items:center; gap:22px; }
.cq-header-wa{ display:flex; align-items:center; gap:10px; text-decoration:none; max-width:340px; }
.cq-header-wa svg{ flex:0 0 auto; }
.cq-wa-info small{ color:#cdd8f3; font-size:11px; line-height:1.25; display:block; max-width:240px; }
.cq-wa-info .cq-wa-number{ color:#fff; font-size:18px; font-weight:800; line-height:1.1; margin-top:2px; }

/* Carrito */
.cq-cart-icon{ position:relative; color:#fff !important; display:inline-flex; }
.cq-cart-icon svg{ width:26px; height:26px; stroke:#fff !important; opacity:1 !important; }
.cq-cart-icon:hover{ opacity:.85; }
/* Banner azul: titulo SIEMPRE blanco */
.cq-page-banner h1{ color:#fff !important; }
.cq-cart-count{
  position:absolute; top:-8px; right:-10px;
  background:var(--cq-orange); color:#fff;
  font-size:11px; font-weight:700;
  min-width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}

/* ---------- TEXTO SEO CENTRAL (header) ---------- */
.cq-header-seo{
  flex:1 1 auto;
  display:flex; flex-direction:column; gap:2px;
  text-align:left; line-height:1.3;
  max-width:620px;
}
.cq-header-seo span{
  color:#cdd8f3; font-size:12px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ---------- BARRA DE NAVEGACIÓN ---------- */
.cq-nav{ background:var(--cq-navy-2); border-top:1px solid rgba(255,255,255,.12); }
.cq-nav-inner{
  display:flex; align-items:center; justify-content:flex-start;
  padding:0 40px; position:relative;
}
.cq-nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap:6px; flex-wrap:wrap; width:100%;
}
.cq-nav ul li a{
  display:block; color:#fff; text-decoration:none;
  font-size:13px; font-weight:600; letter-spacing:.4px;
  text-transform:uppercase; padding:14px 16px;
  transition:background .2s, color .2s;
}
.cq-nav ul li a:hover{ background:rgba(255,255,255,.1); }
.cq-nav ul li.current-menu-item > a{ color:var(--cq-orange); }

/* Botón CONTACTO destacado a la derecha (solo nivel superior, NO dropdown) */
.cq-nav > ul > li.cq-nav-contacto,
.cq-nav > ul > li:last-child{ margin-left:auto; }
.cq-nav > ul > li.cq-nav-contacto > a,
.cq-nav > ul > li:last-child > a{
  background:var(--cq-sky); color:#fff;
  border-radius:6px; margin:7px 0; padding:9px 26px;
}
.cq-nav > ul > li.cq-nav-contacto > a:hover,
.cq-nav > ul > li:last-child > a:hover{ background:#1f93c7; }

/* Toggle móvil */
.cq-nav-toggle{ display:none; background:transparent; border:0; color:#fff; cursor:pointer; padding:12px 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px){
  .cq-header-seo{ display:none; }
}
@media (max-width: 900px){
  .cq-header-top{ padding:12px 18px; gap:14px; }
  .cq-wa-info small{ display:none; }
  .cq-logo-img{ height:42px; }
  .cq-nav-inner{ padding:0 18px; }
  .cq-nav-toggle{ display:block; }
  .cq-nav ul{ display:none; flex-direction:column; align-items:stretch; width:100%; padding-bottom:10px; }
  .cq-nav.open ul{ display:flex; }
  .cq-nav ul li.cq-nav-contacto,
  .cq-nav ul li:last-child{ margin-left:0; }
  .cq-nav ul li.cq-nav-contacto > a,
  .cq-nav ul li:last-child > a{ text-align:center; margin:7px 16px; }
}

/* ---------- DROPDOWN MICROBIOLOGÍA SANITARIA ---------- */
.cq-nav ul li.cq-has-dropdown{ position:relative; }
.cq-nav ul li.cq-has-dropdown > a{ display:flex; align-items:center; gap:6px; }
.cq-nav ul li.cq-has-dropdown > a svg{ transition:transform .2s; }
.cq-nav ul li.cq-has-dropdown:hover > a svg{ transform:rotate(180deg); }
.cq-nav ul li.cq-has-dropdown .cq-dropdown{
  position:absolute; top:100%; left:0;
  min-width:230px; margin:0; padding:6px 0;
  background:#fff; border-radius:0 0 8px 8px;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  list-style:none; display:none; z-index:1200;
}
.cq-nav ul li.cq-has-dropdown:hover .cq-dropdown{ display:block; }
.cq-nav ul li.cq-has-dropdown .cq-dropdown li{ width:100%; }
.cq-nav ul li.cq-has-dropdown .cq-dropdown li a{
  color:#16357f; text-transform:none; font-weight:600;
  font-size:13px; padding:11px 20px; white-space:nowrap;
}
.cq-nav ul li.cq-has-dropdown .cq-dropdown li a:hover{
  background:#eef4ff; color:#0053a8;
}
/* Evitar que el item activo del dropdown quede resaltado solo (solo hover) */
.cq-nav ul li.cq-has-dropdown .cq-dropdown li.current-menu-item > a,
.cq-nav ul li.cq-has-dropdown .cq-dropdown li.current_page_item > a,
.cq-nav ul li.cq-has-dropdown .cq-dropdown li.current-menu-item > a:not(:hover),
.cq-nav ul li.cq-has-dropdown .cq-dropdown li.current_page_item > a:not(:hover){
  background:#fff !important; color:#16357f !important; box-shadow:none !important;
}
.cq-nav ul li.cq-has-dropdown .cq-dropdown li.current-menu-item > a:hover,
.cq-nav ul li.cq-has-dropdown .cq-dropdown li.current_page_item > a:hover{
  background:#eef4ff !important; color:#0053a8 !important;
}

/* Indicador de página activa (subrayado celeste como la plantilla) */
.cq-nav ul li.current-menu-item:not(.cq-nav-contacto):not(:last-child) > a,
.cq-nav ul li.current_page_item:not(.cq-nav-contacto):not(:last-child) > a{
  color:#fff; box-shadow:inset 0 -3px 0 var(--cq-sky);
}

/* En móvil el dropdown se muestra como lista expandida */
@media (max-width: 900px){
  .cq-nav ul li.cq-has-dropdown .cq-dropdown{
    position:static; display:block; box-shadow:none;
    background:rgba(255,255,255,.06); border-radius:0;
  }
  .cq-nav ul li.cq-has-dropdown .cq-dropdown li a{ color:#fff; padding-left:34px; }
  .cq-nav ul li.cq-has-dropdown .cq-dropdown li a:hover{ background:rgba(255,255,255,.12); color:#fff; }
}

/* ============================================================
   MENÚ STICKY (la barra de navegación se fija arriba al hacer scroll)
   ============================================================ */
.cq-nav.cq-nav-stuck{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1300;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
  animation:cqNavDown .25s ease;
}
@keyframes cqNavDown{
  from{ transform:translateY(-100%); }
  to{ transform:translateY(0); }
}
/* Espaciador para evitar el salto del contenido cuando la nav se fija */
.cq-nav-spacer{ display:none; }
.cq-nav-spacer.cq-active{ display:block; }

/* Cuando está fija, mostrar un mini-logo a la izquierda del menú */
.cq-nav .cq-nav-minilogo{
  display:none;
  align-items:center;
  flex:0 0 auto;
  margin-right:18px;
  text-decoration:none;
}
.cq-nav.cq-nav-stuck .cq-nav-minilogo{ display:inline-flex; }
.cq-nav .cq-nav-minilogo img{ height:34px; width:auto; display:block; }
.cq-nav .cq-nav-minilogo .cq-nav-minitext{ color:#fff; font-size:18px; font-weight:800; letter-spacing:.4px; }

@media (max-width: 900px){
  /* En móvil mantenemos la nav fija también, compacta */
  .cq-nav.cq-nav-stuck .cq-nav-minilogo{ display:none; }
}

/* ============================================================
   CARRITO REDISEÑADO (profesional, 2 columnas)
   ============================================================ */
.cq-cart-layout{
  display:grid;
  grid-template-columns:1fr 340px;
  gap:28px;
  align-items:start;
  max-width:1140px;
  margin:0 auto;
  padding:10px 0 40px;
}
.cq-cart-main{
  background:#fff;
  border:1px solid #e6ecf5;
  border-radius:14px;
  padding:26px 28px;
  box-shadow:0 6px 22px rgba(0,40,90,.06);
}
.cq-cart-main-head{
  display:flex; align-items:baseline; justify-content:space-between;
  border-bottom:2px solid #eef2f8; padding-bottom:14px; margin-bottom:6px;
}
.cq-cart-title{ font-size:22px; font-weight:800; color:#0053A8; margin:0; }
.cq-cart-count{ font-size:14px; color:#6b7a90; font-weight:600; }

.cq-cart-items{ display:flex; flex-direction:column; }
.cq-cart-item{
  display:grid;
  grid-template-columns:78px 1fr auto auto 34px;
  align-items:center;
  gap:16px;
  padding:18px 0;
  border-bottom:1px solid #eef2f8;
}
.cq-cart-item:last-child{ border-bottom:none; }
.cq-cart-item-thumb{
  width:78px; height:78px; border-radius:10px; overflow:hidden;
  background:#f1f5fb; flex:0 0 auto;
}
.cq-cart-item-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.cq-cart-item-info{ min-width:0; }
.cq-cart-item-name{
  font-size:15.5px; font-weight:700; color:#1f2d44; margin:0 0 4px;
  line-height:1.3;
}
.cq-cart-item-unit{ font-size:13px; color:#7a8aa0; margin:0; }

.cq-cart-item-qty{
  display:inline-flex; align-items:center;
  border:1px solid #d6e0ee; border-radius:8px; overflow:hidden;
  background:#fff;
}
.cq-qty-btn{
  width:32px; height:34px; border:none; background:#f4f8fd;
  color:#0053A8; font-size:18px; font-weight:700; cursor:pointer;
  line-height:1; transition:background .15s;
}
.cq-qty-btn:hover{ background:#e3eefb; }
.cq-qty-val{
  min-width:38px; text-align:center; font-weight:700; color:#1f2d44;
  font-size:15px;
}
.cq-cart-item-sub{
  font-size:16px; font-weight:800; color:#0053A8; text-align:right;
  min-width:90px;
}
.cq-remove-item{
  border:none; background:transparent; color:#b3becd; cursor:pointer;
  width:34px; height:34px; border-radius:8px; display:inline-flex;
  align-items:center; justify-content:center; transition:.15s; padding:0;
}
.cq-remove-item:hover{ background:#fdeaea; color:#e03131; }

.cq-cart-continue{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:20px; color:#0053A8; font-weight:700; font-size:14px;
  text-decoration:none;
}
.cq-cart-continue:hover{ text-decoration:underline; }

/* Resumen de orden */
.cq-cart-summary{
  background:#fff; border:1px solid #e6ecf5; border-radius:14px;
  padding:24px 22px; box-shadow:0 6px 22px rgba(0,40,90,.06);
  position:sticky; top:90px;
}
.cq-summary-title{
  font-size:17px; font-weight:800; color:#0B3D91; margin:0 0 16px;
}
.cq-summary-row{
  display:flex; justify-content:space-between; align-items:center;
  font-size:14.5px; color:#3a4862; margin-bottom:12px;
}
.cq-summary-muted span{ color:#8493a8; font-size:13.5px; }
.cq-summary-divider{ height:1px; background:#eef2f8; margin:8px 0 14px; }
.cq-summary-total{ font-size:18px; font-weight:800; color:#0053A8; margin-bottom:18px; }
.cq-summary-total span:last-child{ color:#0053A8; }

.cq-btn-block{ display:block; width:100%; text-align:center; }
.cq-btn-lg{ padding:14px 22px; font-size:15.5px; font-weight:800; border-radius:10px; }
.cq-cart-summary .cq-btn-primary{ background:#0053A8; color:#fff; }
.cq-cart-summary .cq-btn-primary:hover{ background:#00407f; }

.cq-summary-note{
  display:flex; align-items:center; gap:7px; justify-content:center;
  font-size:12.5px; color:#8493a8; margin:14px 0 0;
}

/* Estado vacío */
.cq-cart-empty{
  text-align:center; padding:60px 20px; max-width:520px; margin:0 auto;
}
.cq-cart-empty-icon{ color:#c3d2e6; margin-bottom:18px; }
.cq-cart-empty-title{ font-size:24px; font-weight:800; color:#0B3D91; margin:0 0 10px; }
.cq-cart-empty-text{ font-size:15px; color:#7a8aa0; margin:0 0 24px; line-height:1.6; }
.cq-cart-empty .cq-btn-primary{ background:#0053A8 !important; color:#fff !important; text-decoration:none; }
.cq-cart-empty .cq-btn-primary:hover{ background:#00407f !important; color:#fff !important; }

@media (max-width: 900px){
  .cq-cart-layout{ grid-template-columns:1fr; }
  .cq-cart-summary{ position:static; }
  .cq-cart-item{
    grid-template-columns:64px 1fr auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty  sub";
    row-gap:10px;
  }
  .cq-cart-item-thumb{ grid-area:thumb; width:64px; height:64px; }
  .cq-cart-item-info{ grid-area:info; }
  .cq-cart-item-qty{ grid-area:qty; }
  .cq-cart-item-sub{ grid-area:sub; text-align:left; }
  .cq-remove-item{ grid-area:remove; justify-self:end; }
}

/* ---------- FOTO EN DETALLE DE ESTUDIO ---------- */
.cq-single-foto{
  width:100%; border-radius:12px; overflow:hidden; margin:0 0 24px;
  box-shadow:0 6px 22px rgba(0,40,90,.08); background:#f1f5fb;
}
.cq-single-foto img{
  width:100%; height:auto; max-height:380px; object-fit:cover; display:block;
}


/* ============================================================
   HOME REDISEÑO — assets aprobados (v1.0.6)
   ============================================================ */

/* --- HERO: banners completos 1920x720 --- */
.cq-hero.cq-hero-img{ aspect-ratio:1920 / 720 !important; max-height:760px; }
.cq-hero.cq-hero-img .cq-slide-banner{ object-fit:cover; }

/* --- ÍCONO CARRITO blanco y visible --- */
.cq-header-actions .cq-cart-icon{ color:#fff !important; }
.cq-header-actions .cq-cart-icon svg{ stroke:#fff !important; }
/* pulso al agregar */
@keyframes cqCartPulse{ 0%{transform:scale(1);} 30%{transform:scale(1.35);} 60%{transform:scale(.9);} 100%{transform:scale(1);} }
.cq-cart-icon.cq-cart-bump svg{ animation:cqCartPulse .5s ease; }
.cq-header-actions .cq-cart-count{ box-shadow:0 0 0 2px rgba(255,255,255,.85); }

/* --- BANNER 3 FEATURES (banner1.png) --- */
.cq-features-banner{ width:100%; margin:0; line-height:0; }
.cq-features-banner img{ display:block; width:100%; height:auto; }

/* --- ÍCONOS DE LOS 3 PASOS (Grupo 21/22/23) --- */
.cq-step-icon.cq-step-icon-img{
  width:88px; height:88px; margin:0 auto 16px; background:transparent !important;
  display:flex; align-items:center; justify-content:center; border-radius:0; box-shadow:none;
}
.cq-step-icon.cq-step-icon-img img{ width:88px; height:88px; object-fit:contain; display:block; }

/* --- MICROBIOLOGÍA: banner aprobado (imagen de fondo + texto HTML) --- */
.cq-micro-banner{
  width:100%; margin:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  aspect-ratio:1920/498;
  display:flex;
  align-items:center;
}
.cq-micro-banner-inner{
  width:100%; max-width:1280px; margin:0 auto; padding:40px;
}
.cq-micro-banner-text{
  margin-left:52%;
  max-width:520px;
  color:#fff;
}
.cq-micro-title{
  font-size:28px; line-height:1.25; font-weight:400; color:#fff;
  margin:0 0 14px;
}
.cq-micro-title strong{ font-weight:800; }
.cq-micro-p{
  font-size:15px; line-height:1.5; color:#fff; margin:0 0 10px;
}
.cq-micro-p strong{ font-weight:700; }
.cq-micro-btn{
  display:inline-block; margin-top:10px;
  background:#1f7ae0; color:#fff !important;
  font-weight:700; font-size:14px; letter-spacing:.5px;
  padding:14px 28px; border-radius:6px; text-decoration:none;
  transition:background .2s;
}
.cq-micro-btn:hover{ background:#1565c0; }
@media (max-width:768px){
  .cq-micro-banner{ aspect-ratio:auto; background:linear-gradient(135deg,#f15a22,#ff7a2f); padding:28px 0; }
  .cq-micro-banner-text{ margin-left:0; max-width:none; padding:0 6px; }
  .cq-micro-title{ font-size:22px; }
}

/* --- ALIADOS: imagen única de marcas --- */
.cq-aliados-banner{ max-width:1100px; margin:30px auto 0; padding:0 20px; }
.cq-aliados-banner picture{ display:block; width:100%; }
.cq-aliados-banner img{ display:block; width:100%; height:auto; }

/* --- BIENVENIDA: foto familia --- */
.cq-welcome-image img{ width:100%; height:auto; object-fit:contain; }

/* --- SUBMENÚ MÓVIL: texto blanco legible sobre azul --- */
@media (max-width: 992px){
  .cq-nav ul li ul,
  .cq-nav .sub-menu{ background:rgba(255,255,255,.08); }
  .cq-nav ul li a,
  .cq-nav ul li ul li a,
  .cq-nav .sub-menu li a,
  .cq-nav .menu-item-has-children > a{ color:#fff !important; }
  .cq-nav ul li ul li a:hover,
  .cq-nav .sub-menu li a:hover{ background:rgba(255,255,255,.15); color:#fff !important; }
}

/* --- RESPONSIVE: secciones de imagen en móvil --- */
@media (max-width: 900px){
  .cq-step-icon.cq-step-icon-img,
  .cq-step-icon.cq-step-icon-img img{ width:76px; height:76px; }
  .cq-aliados-banner{ padding:0 12px; max-width:100%; margin-top:18px; }
  .cq-aliados-banner picture{ width:100%; }
  .cq-aliados-banner img{ width:100%; height:auto; }
}

/* --- HERO en MÓVIL: banner vertical COMPLETO, a tamaño natural --- */
@media (max-width: 768px){
  /* contenedor: sin alto fijo, crece con el slide activo en flujo */
  .cq-hero.cq-hero-img,
  .cq-hero{
    aspect-ratio:auto !important;
    height:auto !important; min-height:0 !important; max-height:none !important;
    overflow:visible !important;
  }
  /* inactivos fuera de flujo y ocultos */
  .cq-hero.cq-hero-img .cq-slide{
    position:absolute !important; inset:0 !important;
    height:auto !important; min-height:0 !important; opacity:0; visibility:hidden;
  }
  /* activo en flujo normal y en BLOQUE (no flex/stretch): empuja la altura */
  .cq-hero.cq-hero-img .cq-slide.active,
  .cq-hero.cq-hero-img .cq-slide.cq-slide-img.active{
    position:relative !important; inset:auto !important;
    height:auto !important; min-height:0 !important; opacity:1; visibility:visible;
    display:block !important; align-items:initial !important; justify-content:initial !important;
  }
  .cq-hero.cq-hero-img .cq-slide.active .cq-slide-imglink,
  .cq-hero.cq-hero-img .cq-slide.active picture{
    display:block !important; width:100% !important; height:auto !important; line-height:0;
  }
  /* imagen a ancho completo y ALTO NATURAL: banner entero, grande, sin recorte */
  .cq-hero.cq-hero-img .cq-slide.active .cq-slide-banner{
    position:static !important;
    width:100% !important; height:auto !important;
    object-fit:contain !important; aspect-ratio:auto !important; max-height:none !important;
  }
}


/* --- 3 PASOS: texto blanco legible sobre tarjeta azul --- */
.cq-steps .cq-step h3{ color:#ffffff !important; }
.cq-steps .cq-step p{ color:rgba(255,255,255,.88) !important; }


/* --- FOOTER: logo de imagen (igual que header) + tagline --- */
.cq-footer-head{ align-items:flex-start; }
.cq-footer-brand{ padding-top:6px; }
.cq-footer-brand .cq-footer-logo-img{
  display:block;
  width:auto;
  height:46px;
  max-width:300px;
  object-fit:contain;
  object-position:left center;
  margin:0 0 10px;
}
.cq-footer-brand .cq-logo-sub{
  color:rgba(255,255,255,.6) !important;
  font-size:.7rem;
  margin-top:2px;
  letter-spacing:.2px;
}
/* Menú del footer: lista de enlaces uniforme (sin encabezado) */
.cq-footer-menu ul{ list-style:none; padding:0; margin:0; }
.cq-footer-menu ul li{ margin-bottom:8px; }
.cq-footer-menu ul li a{ color:rgba(255,255,255,.82); font-size:.82rem; }
.cq-footer-menu ul li a:hover{ color:#fff; }

@media (max-width: 900px){
  .cq-footer-brand .cq-footer-logo-img{ height:42px; }
}


/* ================================================================
   NOSOTROS — íconos originales (Misión / Visión / Valores)
   La plantilla usa íconos azules SIN fondo de color (no círculo naranja).
   ================================================================ */
.cq-mv-icon{
  width:auto !important;
  height:auto !important;
  background:transparent !important;
  border-radius:0 !important;
  display:block !important;
  margin-bottom:14px !important;
}
.cq-mv-icon img{
  width:56px !important;
  height:56px !important;
  object-fit:contain;
  display:block;
}
.cq-valores .cq-section-header img{
  display:inline-block;
  width:60px !important;
  height:60px !important;
  object-fit:contain;
}

/* Galería 2x4 en escritorio, 2 columnas en móvil (mosaico pegado) */
.cq-nosotros-gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
}
.cq-nosotros-gallery img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}
@media (max-width:768px){
  .cq-nosotros-gallery{ grid-template-columns:repeat(2,1fr); }
  .cq-nosotros-gallery img{ height:150px; }
}


/* ================================================================
   NOSOTROS — bloque intro (texto izquierda + foto derecha)
   ================================================================ */
.cq-nosotros-intro{ align-items:start !important; }
.cq-nosotros-entry .cq-nosotros-title{
  color:#1f2d44; font-size:1.9rem; font-weight:800; line-height:1.2; margin:0 0 10px;
}
.cq-nosotros-entry .cq-nosotros-title span{ color:var(--cq-navy); }
.cq-nosotros-entry .cq-nosotros-sub{
  color:#6b7a90; font-size:.9rem; font-weight:600; margin:0 0 18px;
}
.cq-nosotros-entry .cq-nosotros-h3{
  color:var(--cq-navy); font-size:1.15rem; font-weight:800; margin:22px 0 10px;
}


/* ============================================================
   FIX FINAL: BUSCADOR DEL HEADER + MENÚ MÓVIL
   Compatible con el HTML original cq-search-input / cq-search-results.
   Estilos aislados para no afectar el buscador del HOME.
   ============================================================ */

/* Buscador del header: el HTML original queda dentro de #cq-header-study-search */
.cq-nav-inner > #cq-header-study-search {
  flex: 0 0 205px;
  width: 205px;
  min-width: 0;
  margin-left: 12px;
  position: relative;
  z-index: 1301;
}

/* Neutralizar únicamente el contenedor original dentro del header */
#cq-header-study-search .cq-search-section {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}
#cq-header-study-search .cq-search-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
#cq-header-study-search .cq-search-box h3 {
  display: none;
}
#cq-header-study-search .cq-search-wrap {
  position: relative;
  width: 100%;
  margin: 0;
}

/* El buscador original usa type=text e ID cq-search-input */
#cq-header-study-search input#cq-search-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 43px 0 14px;
  border: 1px solid #dce6f2 !important;
  border-radius: 22px;
  background: #fff !important;
  color: #164477;
  font-family: inherit;
  font-size: 12px;
  line-height: normal;
  box-shadow: 0 2px 5px rgba(0,30,70,.10);
  box-sizing: border-box;
  outline: none;
}
#cq-header-study-search input#cq-search-input::placeholder {
  color: #8493a6;
  opacity: 1;
}
#cq-header-study-search input#cq-search-input:focus {
  border-color: #7db8ef !important;
  box-shadow: 0 0 0 3px rgba(0,83,168,.12);
}

/* Lupa integrada */
#cq-header-study-search button.cq-search-submit {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 6px;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  color: #0053a8 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
#cq-header-study-search button.cq-search-submit:hover,
#cq-header-study-search button.cq-search-submit:focus-visible {
  background: #eaf3ff !important;
  color: #0087ff !important;
}
#cq-header-study-search button.cq-search-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* Resultados AJAX: dropdown bajo el campo, sin tocar el buscador del HOME */
#cq-header-study-search #cq-search-results {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1400;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,30,70,.18);
}

/* Escritorio: menú y buscador en una sola fila */
@media (min-width: 901px) {
  .cq-nav .cq-nav-inner {
    display: flex;
    align-items: center;
  }
  .cq-nav .cq-nav-inner > ul,
  .cq-nav .cq-nav-inner > ul.menu {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
    gap: 2px;
  }
  .cq-nav .cq-nav-inner > ul > li {
    flex: 0 0 auto;
  }
  .cq-nav .cq-nav-inner > ul > li > a {
    white-space: nowrap;
  }
  .cq-nav .cq-nav-inner > ul > li.cq-nav-contacto,
  .cq-nav .cq-nav-inner > ul > li:last-child {
    margin-left: 0;
  }
}
@media (max-width: 1200px) and (min-width: 901px) {
  .cq-nav .cq-nav-inner > ul > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
  }
  .cq-nav .cq-nav-inner > #cq-header-study-search {
    flex-basis: 165px;
    width: 165px;
    margin-left: 6px;
  }
}

/* Menú móvil: cerrado por defecto; JS alterna .open sobre #cq-nav */
@media (max-width: 900px) {
  .cq-nav,
  .cq-nav.cq-nav-stuck {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    animation: none !important;
  }

  .cq-nav .cq-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
  }

  .cq-nav .cq-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    color: #fff;
    cursor: pointer;
  }

  /* Ocultar solo el menú principal cuando está cerrado */
  .cq-nav .cq-nav-inner > ul,
  .cq-nav .cq-nav-inner > ul.menu {
    display: none !important;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 12px;
    gap: 0;
  }
  .cq-nav.open .cq-nav-inner > ul,
  .cq-nav.open .cq-nav-inner > ul.menu {
    display: flex !important;
  }

  .cq-nav .cq-nav-inner > ul > li {
    width: 100%;
    margin-left: 0 !important;
  }
  .cq-nav .cq-nav-inner > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    text-align: center;
  }

  /* Submenús cerrados hasta que el JS agregue la clase correspondiente */
  .cq-nav .cq-nav-inner > ul > li .sub-menu,
  .cq-nav .cq-nav-inner > ul > li .cq-dropdown,
  .cq-nav .cq-nav-inner > ul > li .cq-megamenu,
  .cq-nav .cq-nav-inner > ul > li .cq-mega-menu {
    display: none;
    position: static;
    width: 100%;
    box-shadow: none;
  }
  .cq-nav .cq-nav-inner > ul > li.cq-sub-open > .sub-menu,
  .cq-nav .cq-nav-inner > ul > li.cq-mega-open > .cq-megamenu,
  .cq-nav .cq-nav-inner > ul > li.cq-mega-open > .cq-mega-menu,
  .cq-nav .cq-nav-inner > ul > li.cq-sub-open > .cq-dropdown {
    display: block;
  }

  /* Buscador visible solo cuando el menú está abierto */
  .cq-nav #cq-header-study-search {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    margin: 8px 0 12px;
  }
  .cq-nav.open #cq-header-study-search {
    display: block;
  }
  #cq-header-study-search input#cq-search-input {
    height: 40px;
    font-size: 14px;
  }
  #cq-header-study-search button.cq-search-submit {
    top: 5px;
    width: 30px;
    height: 30px;
  }

  /* En móvil desactivar sticky y su espaciador */
  .cq-nav-spacer.cq-active {
    display: none !important;
    height: 0 !important;
  }
}


/* =========================================================
   AJUSTE FINAL: BUSCADOR COMPACTO DEL HEADER
   Oculta el título y elimina la tarjeta grande del encabezado.
   Mantiene el input, la lupa y los resultados AJAX.
   ========================================================= */

#cq-header-study-search .cq-search-section,
#cq-header-study-search .cq-search-box {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#cq-header-study-search .cq-search-box > h3 {
  display: none !important;
}

#cq-header-study-search .cq-search-wrap {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: visible !important;
}

#cq-header-study-search input#cq-search-input {
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 42px 0 14px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #344054 !important;
  border: 1px solid #d5e0ee !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: normal !important;
  outline: none;
}

#cq-header-study-search input#cq-search-input::placeholder {
  color: #8493a6 !important;
  opacity: 1;
}

#cq-header-study-search input#cq-search-input:focus {
  border-color: #7db8ef !important;
  box-shadow: 0 0 0 2px rgba(0, 83, 168, .10) !important;
}

#cq-header-study-search button.cq-search-submit {
  position: absolute !important;
  top: 50% !important;
  right: 4px !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #0053a8 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: pointer;
}

#cq-header-study-search button.cq-search-submit:hover,
#cq-header-study-search button.cq-search-submit:focus-visible {
  color: #0087ff !important;
  background: #eaf3ff !important;
}

#cq-header-study-search button.cq-search-submit svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2;
}

/* Evita que estilos generales vuelvan a crear una tarjeta en el header */
.cq-nav #cq-header-study-search,
.cq-nav #cq-header-study-search section,
.cq-nav #cq-header-study-search .cq-search-box {
  background: transparent !important;
  box-shadow: none !important;
}

/* Resultados AJAX posicionados debajo del campo */
#cq-header-study-search #cq-search-results {
  position: absolute !important;
  top: calc(100% + 7px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1400;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 30, 70, .18);
}

@media (max-width: 900px) {
  .cq-nav #cq-header-study-search input#cq-search-input {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 14px !important;
  }
}


/* ==================================================
   CENTRO QUÍMICO - AJUSTES HEADER Y MENÚ MÓVIL
   ================================================== */

/* Evitar que desaparezcan opciones del menú en escritorio */
@media (min-width: 901px) {
  .cq-nav.cq-nav-stuck .cq-nav-inner {
    flex-wrap: nowrap;
  }

  .cq-nav.cq-nav-stuck .cq-nav-inner > ul {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0;
  }

  .cq-nav.cq-nav-stuck .cq-nav-inner > ul > li {
    flex: 0 0 auto;
  }

  .cq-nav.cq-nav-stuck .cq-nav-inner > ul > li > a {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    font-size: 12px;
  }

  .cq-nav.cq-nav-stuck .cq-nav-inner > ul > li.cq-nav-contacto,
  .cq-nav.cq-nav-stuck .cq-nav-inner > ul > li:last-child {
    margin-left: auto;
  }

  .cq-nav.cq-nav-stuck .cq-nav-minilogo {
    margin-right: 10px;
  }

  .cq-nav.cq-nav-stuck .cq-nav-minilogo img {
    height: 28px;
    max-width: 115px;
  }
}

/* Lupa: oculta en escritorio */
.cq-mobile-search-toggle {
  display: none;
}

/* Encabezado compacto en móvil */
@media (max-width: 900px) {
  .cq-header-top {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 14px;
  }

  .cq-header-top .cq-logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .cq-header-top .cq-logo-img,
  .cq-header-top .cq-logo img {
    height: 34px !important;
    max-width: 175px !important;
    width: auto !important;
  }

  /* Ocultar WhatsApp solo en móvil */
  .cq-header-actions .cq-header-wa {
    display: none !important;
  }

  .cq-header-actions {
    flex: 0 0 auto;
    gap: 16px;
    margin-left: auto;
  }

  /* Lupa antes del carrito */
  .cq-mobile-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 7px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
  }

  .cq-mobile-search-toggle svg {
    display: block;
    width: 23px;
    height: 23px;
  }

  .cq-mobile-search-toggle:hover,
  .cq-mobile-search-toggle[aria-expanded="true"] {
    background: rgba(255,255,255,.14);
  }

  /* El buscador deja de ocupar espacio en el menú */
  .cq-nav #cq-header-study-search {
    display: none !important;
  }

  /* Panel desplegable del buscador */
  .cq-header.cq-mobile-search-open #cq-header-study-search {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1500 !important;
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(0,30,70,.16) !important;
    box-sizing: border-box;
  }

  .cq-header.cq-mobile-search-open #cq-header-study-search input#cq-search-input {
    height: 42px !important;
    font-size: 14px !important;
  }

  /* Menú móvil desplegado */
  .cq-nav .cq-nav-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cq-nav.cq-nav-stuck .cq-nav-minilogo {
    display: none !important;
  }
}

/* ============================================================
   FIX FINAL — SUBMENÚ MICROBIOLOGÍA EN MÓVIL
   ============================================================ */

@media (max-width: 900px) {

    /* Elemento principal que contiene el submenú */
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown {
        position: relative;
        width: 100%;
        margin: 0 !important;
        padding: 0;
    }

    /* Enlace principal de Microbiología */
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown > a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 12px 42px 12px 16px !important;
        box-sizing: border-box;
        text-align: center;
        position: relative;
        color: #fff !important;
        background: transparent;
    }

    /* Submenú */
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown > .cq-dropdown,
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown > .sub-menu {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: rgba(0, 35, 85, .22) !important;
        box-shadow: none !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Ocultar hasta que se abra el elemento */
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown:not(.cq-sub-open) > .cq-dropdown,
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown:not(.cq-sub-open) > .sub-menu {
        display: none !important;
    }

    /* Mostrar cuando se active */
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown.cq-sub-open > .cq-dropdown,
    .cq-nav .cq-nav-inner > ul > li.cq-has-dropdown.cq-sub-open > .sub-menu {
        display: block !important;
    }

    /* Elementos internos */
    .cq-nav .cq-has-dropdown .cq-dropdown li,
    .cq-nav .cq-has-dropdown .sub-menu li {
        display: block;
        width: 100%;
        margin: 0 !important;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,.12);
        box-sizing: border-box;
    }

    /* Enlaces de cada opción */
    .cq-nav .cq-has-dropdown .cq-dropdown li a,
    .cq-nav .cq-has-dropdown .sub-menu li a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 40px;
        padding: 10px 16px !important;
        margin: 0 !important;
        box-sizing: border-box;
        text-align: center;
        white-space: normal !important;
        overflow-wrap: break-word;
        color: #fff !important;
        background: transparent !important;
        font-size: 12px !important;
        font-weight: 500;
        line-height: 1.4;
        text-transform: none !important;
        border-radius: 0 !important;
    }

    /* Hover y selección */
    .cq-nav .cq-has-dropdown .cq-dropdown li a:hover,
    .cq-nav .cq-has-dropdown .sub-menu li a:hover {
        color: #fff !important;
        background: rgba(255,255,255,.13) !important;
    }

    /* Evitar que el estado activo cambie los colores */
    .cq-nav .cq-has-dropdown .cq-dropdown li.current-menu-item > a,
    .cq-nav .cq-has-dropdown .sub-menu li.current-menu-item > a,
    .cq-nav .cq-has-dropdown .sub-menu li.current_page_item > a {
        color: #fff !important;
        background: rgba(255,255,255,.08) !important;
        box-shadow: none !important;
    }

    /* Evitar que hover de escritorio abra el menú en móvil */
    .cq-nav .cq-has-dropdown:hover > .cq-dropdown,
    .cq-nav .cq-has-dropdown:hover > .sub-menu {
        display: inherit;
    }
}