.occo-scroll-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 996;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #feaf22;
  color: #006f5c;
  box-shadow: 0 2px 8px #0003;
  cursor: pointer;
}
.occo-scroll-top[hidden] { display: none; }
.occo-scroll-top:focus-visible { outline: 3px solid #006f5c; outline-offset: 3px; }
.whatsapp-float ~ .occo-scroll-top { right: auto; left: 16px; left: max(16px, env(safe-area-inset-left)); z-index: 1001; }

/* Verde del footer uniforme, también frente a los colores de scroll del script anterior. */
.header, .navbar, .navbar-collapse, .site-header { background-color: #006f5c !important; }
/* El desplegable debe quedar por encima de la franja de pedidos (1020). */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1030; }
/* Las landings conservan su espacio y acompañan el desplazamiento. */
.site-header { position: sticky; top: 0; z-index: 1030; }

/* Marca con descriptor legible en menús y pies de página. */
.navbar .logo img, .site-header .logo img,
#footer .iconos-footer img, footer img[src="assets/img/Logo-Occo.svg"] { width: 150px; height: auto; max-width: 100%; }
.navbar .logo img, .site-header .logo img { width: 190px; height: auto; }
.navbar .logo { width: 190px; flex: 0 0 190px; }
.site-header .header-inner > .logo { width: 190px; flex: 0 0 190px; }
.site-header .header-inner { min-height: 70px; padding-block: 0; align-items: center; }
@media (min-width: 1200px) {
  .navbar { padding-block: 0; }
  .navbar > .container-fluid { min-height: 70px; }
  .navbar .navbar-collapse .navbar-nav .nav-item { padding-block: 0; }
}
@media (min-width: 1400px) {
  .navbar > .container-fluid { max-width: 1320px; margin-inline: auto; }
}

/* Franja de título uniforme, basada en la de Nosotros. */
.page-title-band,
.vista-nosotros .nosotros-titulo.page-title-band,
.productos .productos-titulo.page-title-band { display: flex; justify-content: center; background-color: #8886ef; padding: 0 16px; margin-top: 0; }
.page-title-band > p,
.vista-nosotros .nosotros-titulo.page-title-band h2,
.productos .productos-titulo.page-title-band h2 { color: #f1ede7; font-family: "Sharp Grotesk Bold 25", sans-serif; font-size: 2.6rem; font-weight: normal; line-height: 1.2; letter-spacing: normal; text-align: center; margin: 0 0 8px; }
@media (max-width: 768px) {
  .page-title-band > p,
  .vista-nosotros .nosotros-titulo.page-title-band h2,
  .productos .productos-titulo.page-title-band h2 { font-size: 2rem; }
}

/* Pie común compacto: marca a la izquierda y redes a la derecha. */
#footer.occo-footer { height: auto; min-height: 0; padding: 16px 20px; background: #006f5c; color: #fff; }
.occo-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) 48px 48px; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; }
.occo-footer-logo { grid-column: 1; grid-row: 1; justify-self: start; }
.occo-footer-social:first-child { grid-column: 2; grid-row: 1; }
.occo-footer-social:last-child { grid-column: 3; grid-row: 1; }
#footer.occo-footer .occo-footer-logo img { display: block; width: 210px; height: auto; max-width: 100%; filter: brightness(0) invert(1); }
.occo-footer-social { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; color: #fff; border-radius: 50%; }
.occo-footer-social:hover { color: #f6c5fc; background: #ffffff12; }
.occo-footer-social:focus-visible, .occo-footer-logo:focus-visible { outline: 2px solid #feaf22; outline-offset: 5px; }
@media (max-width: 575.99px) {
  #footer.occo-footer { padding-inline: 12px; }
  .occo-footer-inner { grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 8px; }
  #footer.occo-footer .occo-footer-logo img { width: 180px; }
  .occo-footer-social { width: 44px; height: 44px; }
}

/* Opciones de pedido con el mismo diámetro y alineación. */
.pedido-logo, .mercado-delivery-logo { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 70px; width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: #fff; vertical-align: middle; }
.pedido-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mercado-delivery-logo { min-width: 70px; max-width: 70px; min-height: 70px; max-height: 70px; clip-path: circle(50% at 50% 50%); }
.mercado-delivery-logo img { display: block; width: 70px; height: 70px; transform: scale(1.1); }
.modal-content .modal-body .img-modal .pedido-logo img,
.modal-content .modal-body .img-modal .mercado-delivery-logo img { margin: 0; }
.pedido-apps, .modal .img-modal, .modal-inicio .modal-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; padding-inline: 16px; box-sizing: border-box; }

/* Franja de pedidos en Nosotros y Productos. */
.order-strip { position: fixed; top: 70px; left: 0; right: 0; z-index: 1020; height: 70px; display: flex; align-items: center; justify-content: center; gap: 30px; padding: 6px 20px; box-sizing: border-box; background: #fb5f16; color: #fff; }
.order-strip-title { font-size: 23px; line-height: 1.1; }
.order-strip-logos { display: flex; justify-content: center; gap: 12px; }
.order-strip-logo { position: relative; display: flex; align-items: center; justify-content: center; width: 110px; height: 58px; border-radius: 8px; overflow: hidden; background: #fff; }
.order-strip-logo img { display: block; width: 48px; height: 48px; object-fit: contain; }
.order-strip-mercado img { position: absolute; left: calc(50% + 7px); top: 50%; width: 210px; max-width: none; height: auto; transform: translate(-50%, -50%); }
.order-strip + .vista-nosotros, .order-strip + .cabecera-productos { margin-top: 140px; }
.order-strip + .cabecera-productos .productos-titulo { margin-top: 0; }
@media (max-width: 575.99px) {
  .order-strip { height: 70px; flex-direction: row; gap: 8px; padding: 8px; }
  .order-strip + .vista-nosotros, .order-strip + .cabecera-productos { margin-top: 140px; }
  .order-strip-title { font-size: 14px; white-space: nowrap; }
  .order-strip-logos { gap: 6px; }
  .order-strip-logo { width: 58px; height: 44px; }
  .order-strip-logo img { width: 40px; height: 40px; }
  .order-strip-mercado img { width: 116px; height: auto; left: calc(50% + 3px); }
}

/* Conservar las proporciones de los fantasmas, incluso dentro de flex. */
img[src^="assets/img/fantasmas/"] {
  flex-shrink: 0;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Menú más liviano y compacto para incluir todas las secciones. */
.navbar .navbar-collapse .navbar-nav .nav-item a,
.site-header nav a {
  font-family: "Sharp Grotesk Light 25", sans-serif;
  font-weight: 400;
  font-size: 14px;
}
@media (min-width: 1200px) {
  .navbar .navbar-collapse .navbar-nav .nav-item { padding-inline: 6px; }
  .navbar .navbar-collapse .navbar-nav .nav-link { white-space: nowrap; }
}
@media (max-width: 1199.98px) {
  .navbar .navbar-collapse .navbar-nav .nav-item a { font-size: 16px; }
}
@media (max-width: 1280px) {
  .site-header nav a { font-size: 16px; }
}

/* Ubicación centrada con la misma tipografía del menú. */
.occo-footer-location {
  margin: 16px 0 0;
  text-align: center;
  font-family: "Sharp Grotesk Light 25", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Texto entre marca y redes en pantallas anchas; debajo en móviles. */
@media (min-width: 992px) {
  #footer.occo-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 24px;
    padding-inline: max(20px, calc((100% - 1200px) / 2));
  }
  .occo-footer-inner { display: contents; }
  .occo-footer-location { grid-column: 2; grid-row: 1; margin: 0; }
  .occo-footer-social:first-child {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-right: 60px;
  }
  .occo-footer-social:last-child {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

/* Selector de WhatsApp de sucursales. */
.occo-whatsapp-selector { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1040; color: #006f5c; }
.occo-whatsapp-selector > summary { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #006f5c; color: #f1ede7; cursor: pointer; list-style: none; box-shadow: 0 3px 12px #006f5c40; }
.occo-whatsapp-selector > summary::-webkit-details-marker { display: none; }
.occo-whatsapp-selector > summary:focus-visible, .occo-whatsapp-panel a:focus-visible { outline: 3px solid #8886ef; outline-offset: 4px; }
.occo-whatsapp-panel { position: absolute; bottom: 72px; right: 0; width: min(330px, calc(100vw - 32px)); max-height: calc(100dvh - 120px); overflow-y: auto; padding: 22px; border-radius: 24px; background: #f1ede7; border: 2px solid #006f5c; box-shadow: 0 4px 20px #006f5c30; }
.occo-whatsapp-panel .occo-whatsapp-title { margin: 0 0 16px; color: #006f5c; font-size: 1rem; line-height: 1.5; }
.occo-whatsapp-panel nav { display: grid; gap: 8px; }
.occo-whatsapp-panel a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: #c6e9f9; color: #006f5c; font-family: "Sharp Grotesk Light 25", sans-serif; font-size: .95rem; text-decoration: none; }
.occo-whatsapp-panel a:hover { background: #f7cffc; color: #006f5c; }
.occo-whatsapp-selector ~ .occo-scroll-top { right: auto; left: max(16px, env(safe-area-inset-left)); }

/* Tamaño uniforme de WhatsApp en páginas principales y landings. */
.whatsapp-float,
.occo-whatsapp-selector > summary { width: 58px; height: 58px; box-sizing: border-box; }
.whatsapp-float > svg,
.occo-whatsapp-selector > summary > svg { display: block; width: 32px; height: 32px; flex-shrink: 0; }
