/* Menú de países */
.countries-menu {
  position: relative;
  display: inline-block;
}

.countries-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s, border-color 0.3s;
}

.countries-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.countries-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(0,0,0,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.2s ease;
}

.countries-menu[data-open="true"] .countries-dropdown {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.country-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  border-radius: 6px;
  margin: 2px;
}

.country-link:hover {
  background: rgba(255,255,255,0.1);
  color: #4d9fff;
}

.country-link .flag {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .countries-dropdown {
    right: auto;
    left: 0;
    width: 100%;
  }
}