/* OCA-I chrome overlay for OmniRoute */
#ocaiChromeHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

#ocaiChromeHeader * { box-sizing: border-box; }

.ocai-chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.ocai-chrome-brand span.mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
}

.ocai-chrome-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.ocai-chrome-langs button {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 0.2rem 0.35rem;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  min-width: 1.85rem;
}

.ocai-chrome-langs button.active {
  border-color: #e9d5ff;
  background: #faf5ff;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.12);
}

#ocaiChromeFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

#ocaiChromeFooter .ocai-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #e5e7eb;
  font-size: 0.72rem;
  color: #64748b;
}

#ocaiChromeFooter .ocai-powered a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

#ocaiChromeFooter .ocai-powered a:hover { text-decoration: underline; }

body.ocai-chrome-ready {
  padding-top: 42px !important;
  padding-bottom: 92px !important;
}

/* Contador de visitas (sin script externo: CSP de OmniRoute bloquea oca-i.net) */
.ocai-visitor-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.78rem;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.ocai-visitor-footer__count {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ocai-visitor-footer__count strong { font-size: 0.95rem; color: #0d9488; }
.ocai-visitor-footer__label {
  color: #94a3b8;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ocai-visitor-footer__marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ocai-visitor-footer__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ocai-visitor-marquee 36s linear infinite;
}
.ocai-visitor-footer__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #475569;
  white-space: nowrap;
}
@keyframes ocai-visitor-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  #ocaiChromeHeader { padding: 0.4rem 0.55rem; }
  .ocai-chrome-brand .hide-sm { display: none; }
  .ocai-visitor-footer { flex-direction: column; align-items: flex-start; }
}
