/* =========================================================
   QueBuscasRD — Cabecera de la página del negocio (19 oct. 2026)
   ---------------------------------------------------------
   En todas las plantillas: en vez del logo de QueBuscasRD, a la
   izquierda el botón «Retornar al directorio» y el logo y nombre
   del negocio; a la derecha el carrito y «Contactar».
   En «Profesional» el menú de secciones sube al centro
   (assets/js/negocio-pro.js + plantilla-pro.css).
   ========================================================= */
html body .header.pr-header {
    --pr-900: #0F172A; --pr-700: #334155; --pr-600: #475569; --pr-200: #E2E8F0; --pr-50: #F8FAFC;
    --pr-marca: var(--primario, #4F46E5);
    --pr-marca-tx: color-mix(in srgb, var(--pr-marca) 72%, #0F172A);
    --pr-marca-btn: color-mix(in srgb, var(--pr-marca) 74%, #0F172A);
    --pr-sombra: 0 1px 3px 0 rgba(15, 23, 42, .03), 0 1px 2px -1px rgba(15, 23, 42, .03);
}
/* ================= CABECERA CON EL NOMBRE DEL NEGOCIO ================= */
/* «Retornar al directorio» + logo y nombre a la izquierda; en computadora
   el menú de secciones en el centro (negocio-pro.js lo sube aquí); a la
   derecha el carrito y «Contactar». */
html body .header.pr-header .header-contenido { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
@media (min-width: 1024px) { html body .header.pr-header .header-contenido { min-height: 80px; } }
.pr-head-izq { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 0 1 auto; }
@media (min-width: 640px) { .pr-head-izq { gap: 24px; } }
.pr-retornar {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    background: var(--pr-50); border: 1px solid var(--pr-200); color: var(--pr-700); box-shadow: var(--pr-sombra);
    font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.pr-retornar svg { width: 13px; height: 13px; transition: transform .2s; }
.pr-retornar:hover { background: var(--pr-900); border-color: var(--pr-900); color: #fff; }
.pr-retornar:hover svg { transform: translateX(-2px); }
.pr-head-sep { flex: none; width: 1px; height: 16px; background: var(--pr-200); }
.pr-head-marca { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--pr-900); }
.pr-head-logo {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 12px;
    background: var(--pr-900); color: #fff; font-size: 13px; font-weight: 800; box-shadow: var(--pr-sombra); transition: background .2s;
}
.pr-head-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pr-head-marca:hover .pr-head-logo { background: var(--pr-marca-btn); }
.pr-head-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 700; letter-spacing: -.02em; transition: color .2s; }
.pr-head-marca:hover .pr-head-nombre { color: var(--pr-marca-tx); }
@media (min-width: 1024px) { .pr-head-nombre { max-width: 260px; } }
html body .header.pr-header .header-derecha { display: flex; align-items: center; gap: 20px; flex: none; }
/* Carrito: bolsa con globito, sin texto */
html body .header.pr-header .carrito {
    position: relative; display: grid !important; place-items: center; width: 40px; height: 40px; padding: 0 !important;
    border-radius: 50% !important; background: none !important; color: var(--pr-600) !important; box-shadow: none !important; border: 0 !important;
}
html body .header.pr-header .carrito:hover { color: var(--pr-marca-tx) !important; }
html body .header.pr-header .carrito svg { width: 20px; height: 20px; }
html body .header.pr-header .carrito .texto { display: none !important; }
html body .header.pr-header .carrito-cantidad {
    position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    display: grid; place-items: center; background: var(--pr-marca-btn) !important; color: #fff !important; font-size: 10px; font-weight: 800; line-height: 1;
}
.pr-contactar {
    display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: var(--pr-900); color: #fff;
    font-size: 12px; font-weight: 600; letter-spacing: .03em; text-decoration: none; box-shadow: var(--pr-sombra); transition: background .2s;
}
.pr-contactar:hover { background: var(--pr-marca-btn); color: #fff; }
@media (max-width: 767px) {
    .pr-retornar span { display: none; }
    .pr-retornar { padding: 8px; }
    .pr-head-sep, .pr-contactar { display: none; }
    .pr-head-nombre { font-size: 16px; }
}

/* El logo del negocio, bien visible (19-oct-2026): más grande, completo
   (sin recortar) sobre blanco; si el logo es ancho, se ve ancho. */
html body .header.pr-header .pr-head-logo {
    width: auto; min-width: 56px; max-width: 150px; height: 56px; padding: 4px;
    border-radius: 14px; background: #fff; border: 1px solid var(--pr-200);
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, .12);
}
html body .header.pr-header .pr-head-logo img { display: block; width: auto; max-width: 140px; height: 46px; object-fit: contain; border-radius: 10px; }
html body .header.pr-header .pr-head-logo:not(:has(img)) { width: 56px; background: var(--pr-900); border-color: var(--pr-900); color: #fff; font-size: 17px; }
html body .header.pr-header .pr-head-marca:hover .pr-head-logo { background: #fff; border-color: var(--pr-marca); }
html body .header.pr-header .pr-head-marca:hover .pr-head-logo:not(:has(img)) { background: var(--pr-marca-btn); }
html body .header.pr-header .pr-head-marca { gap: 14px; }
html body .header.pr-header .pr-head-nombre { font-size: 20px; font-weight: 800; }
@media (min-width: 1024px) {
    html body .header.pr-header .header-contenido { min-height: 84px; }
}
@media (max-width: 767px) {
    html body .header.pr-header .pr-head-logo { min-width: 44px; height: 44px; }
    html body .header.pr-header .pr-head-logo img { height: 34px; }
    html body .header.pr-header .pr-head-nombre { font-size: 17px; }
}
