/* Contador público de visitas · únicamente para index.html */

.visitor-counter {
  min-width: 205px;
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.75rem;
  border: 1px solid rgba(96, 165, 250, 0.17);
  border-radius: 10px;
  color: #95abc4;
  background: rgba(37, 99, 235, 0.055);
}

.visitor-counter-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 8px;
  color: #69a7ff;
  background: rgba(37, 99, 235, 0.09);
}

.visitor-counter-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visitor-counter-copy {
  display: grid;
  gap: 0.08rem;
}

.visitor-counter-copy > span {
  color: #6f88a4;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visitor-counter-copy strong {
  min-width: 3ch;
  color: #dfeafb;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}

.visitor-counter-today {
  padding-left: 0.65rem;
  border-left: 1px solid rgba(96, 165, 250, 0.15);
  color: #617b98;
  font-size: 0.6rem;
  white-space: nowrap;
}

.visitor-counter-today b {
  display: block;
  margin-top: 0.12rem;
  color: #50dcb0;
  font-size: 0.76rem;
}

.visitor-counter-link {
  grid-column: 1 / -1;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  color: #69a7ff;
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.visitor-counter-link:hover { color: #9bc4ff; text-decoration: underline; }

.visitor-counter.is-error {
  opacity: 0.72;
}

html[data-theme="light"] .visitor-counter {
  color: #456483;
  border-color: rgba(34, 82, 139, 0.16);
  background: rgba(255, 255, 255, 0.66);
}

html[data-theme="light"] .visitor-counter-icon {
  color: #2563c7;
  border-color: rgba(37, 99, 199, 0.18);
  background: #e7f0fd;
}

html[data-theme="light"] .visitor-counter-copy > span,
html[data-theme="light"] .visitor-counter-today {
  color: #55718e;
}

html[data-theme="light"] .visitor-counter-copy strong {
  color: #102d4f;
}

html[data-theme="light"] .visitor-counter-today b {
  color: #087b5f;
}

html[data-theme="light"] .visitor-counter-link {
  color: #175eb4;
  border-top-color: rgba(34, 82, 139, 0.13);
}

@media (max-width: 700px) {
  .visitor-counter {
    order: 2;
  }

  .footer-bottom > p {
    order: 1;
  }

  .footer-bottom .footer-links {
    order: 3;
  }
}
