/* ======== ESTILOS BASE ======== */
body {
    font-family: "Inter", system-ui, sans-serif;
    margin: 0;
    background-color: #0b1020;
    color: #eaf0ff;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ======== ENCABEZADO ======== */
header {
    text-align: center;
    padding: 1rem;
}
header h1 {
    margin: 0;
    font-size: 2rem;
}
header p {
    font-size: 1rem;
    opacity: 0.85;
}

/* ======== DASHBOARD ======== */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

/* ======== TARJETAS ======== */
.counter-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden; /* evita desbordes */
}

/* ======== TÍTULOS ======== */
.card-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ======== NÚMEROS ======== */
.counter {
    font-size: clamp(1.25rem, 6vw, 3rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ======== DESCRIPCIÓN ======== */
.explain {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 0.5rem;
}

/* ======== PIE DE PÁGINA ======== */
footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    .counter { font-size: clamp(1rem, 8vw, 2.2rem); }
}
/* ======= MENÚ SUPERIOR ======= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 20, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: #00ccff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #00ccff;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
